Skip to content

fix: say when a query has nothing to look up - #829

Merged
vshulcz merged 1 commit into
mainfrom
fix/short-query-message
Aug 1, 2026
Merged

fix: say when a query has nothing to look up#829
vshulcz merged 1 commit into
mainfrom
fix/short-query-message

Conversation

@vshulcz

@vshulcz vshulcz commented Aug 1, 2026

Copy link
Copy Markdown
Owner
before: deja p        → no matches in 205 indexed sessions — try fewer words or --re (query "p")
        deja "a b c"  → same
after:  deja p        → nothing to search for in "p" — every word in it is too short to look up

Neighbours were already handled: two characters get the close-spelling ladder (pu -> pump), an empty argument gets query required. The message states what happened rather than the rule, because the cut is on bytes — л and are long enough while p is not, and both still search. Closes #828.

Very short tokens are dropped before the index sees them, and the answer
advised using fewer words — of one word, or of none. Closes #828.
@vshulcz
vshulcz merged commit 07930da into main Aug 1, 2026
14 checks passed
@vshulcz
vshulcz deleted the fix/short-query-message branch August 1, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

a query that has no searchable terms is answered with "try fewer words"

1 participant