making autosuggest results useful
See original GitHub issueI’m struggling to get search suggestions that are useful. It makes sense to me for the search to use AND, so I have set that for the search and tried both OR and AND for the suggestions. It seems to work okay in the demo, but my data is not simple title and artist like the demo. It is long articles of text.
I’ve tried various combinations of prefix
and fuzzy
(mostly with AND), but the suggestions are not helpful to the user, because they have the first word followed by a bunch of possible matches for the second word. I can see how these terms are all found in one document, but the user is not helped by that suggestion.
Even your example in the docs is confusing, where you call autosuggest for “zen ar” and get “zen art archery” as a suggestion. It makes sense once you know the parameters, but as a suggestion, it’s not something you would click on. I think the user would be helped by showing “zen art” separate from “zen archery”.
Do I need to make an elaborate filter to get suggestions that make sense?
Issue Analytics
- State:
- Created a year ago
- Comments:11 (7 by maintainers)
Top GitHub Comments
Closing after changing the default to
combineWith: 'AND'
in #161 and adding some more documentation.Ideally, in the future more examples should be provided in a “how to” section, which would be useful also for other features.
The new default is released in
v5.0.0-beta3
.Oh, forget what I said… it turns out that the
beatles lucy di
example is confusing, as the demo dataset only includes “Lucy in the Sky with Diamonds” from Elton John, not the original by The Beatles.Using
combineWith: 'AND'
does include results where all terms are present, even in different fields. Therefore, it seems a good default for the auto suggestion.The point about improving documentation is still valid though.