zhihu / rucene

Rust port of Lucene
Apache License 2.0
1k stars 61 forks source link

PhraseQuery do not work #3

Open fulmicoton opened 4 years ago

fulmicoton commented 4 years ago

Phrase query faills with a panic when running on 10_000 wikipedia docs

See the following commented out code. https://github.com/tantivy-search/search-benchmark-game/blob/master/engines/rucene-0.1/src/bin/do_query.rs#L126-L128

sunxiaoguang commented 4 years ago

Sorry, we are currently not using PhraseQuery. It's complicate and will probably spend long time to be fixed. We use BooleanQuery, TermQuery and SpanQuery in our production which would have better support. Can you temporarily disable phrase query at this time? We will try fixing it later on.

fulmicoton commented 4 years ago

Understood.