quickwit-oss/tantivy
Make the behavior of an empty query configurable in `QueryParser`
开放
#386 创建于 2018年8月20日
enhancementgood first issuehelp wanted
仓库指标
- 星标
- (15,880 个星标)
- PR 合并指标
- (平均合并 12天 14小时) (30 天内合并 20 个 PR)
描述
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).