quickwit-oss/tantivy
Auf GitHub ansehenMake the behavior of an empty query configurable in `QueryParser`
Open
#386 geöffnet am 20. Aug. 2018
enhancementgood first issuehelp wanted
Repository-Metriken
- Stars
- (8.354 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 12T 14h) (20 gemergte PRs in 30 T)
Beschreibung
In some use case, most of the time, people want an empty query to match nothing, but for some analytics use case, it might make more sense for empty query to match all documents.
Add a setter ".set_empty_query_match_all(should_match_all: bool)" to the QueryParser to enforce the non default behavior.
(Also add a getter .get_empty_query_match_all() to read this property).