quickwit-oss/tantivy

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

Open

#386 aberto em 20 de ago. de 2018

Ver no GitHub
 (4 comments) (0 reactions) (0 assignees)Rust (499 forks)batch import
enhancementgood first issuehelp wanted

Métricas do repositório

Stars
 (8.354 stars)
Métricas de merge de PR
 (Mesclagem média 12d 14h) (20 fundiu PRs em 30d)

Description

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).

Guia do colaborador