quickwit-oss/tantivy

Make the behavior of an empty query configurable in `QueryParser`

開放

#386 建立於 2018年8月20日

 (4 則留言) (0 個反應) (0 位負責人)Rust (978 個分叉)batch import
enhancementgood first issuehelp wanted

倉庫指標

星標
 (15,972 顆星)
PR 合併指標
 (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).

貢獻者指南