search --limit now defaults to everything, refs #192

This commit is contained in:
Simon Willison 2020-11-08 09:00:43 -08:00
commit 79109939c3
2 changed files with 3 additions and 5 deletions

View file

@ -933,15 +933,14 @@ Use the ``--sql`` option to output the SQL that would be executed, rather than r
from [documents]
)
select
original.*,
[documents_fts].rank as rank
[original].*
from
[original]
join [documents_fts] on [original].rowid = [documents_fts].rowid
where
[documents_fts] match :query
order by
rank
[documents_fts].rank
.. _cli_vacuum:

View file

@ -986,8 +986,7 @@ def query(
@click.option(
"--limit",
type=int,
default=20,
help="Number of rows to return, default 20, set to 0 for unlimited",
help="Number of rows to return - defaults to everything",
)
@click.option(
"--sql", "show_sql", is_flag=True, help="Show SQL query that would be run"