PhraseScorer's score aligned with that of Lucene.)

This commit is contained in:
Paul Masurel
2018-03-25 12:35:39 +09:00
parent 238b02ce7d
commit 3ae03b91ae
12 changed files with 297 additions and 149 deletions

View File

@@ -305,7 +305,7 @@ fn compose_occur(left: Occur, right: Occur) -> Occur {
fn convert_literal_to_query(logical_literal: LogicalLiteral) -> Box<Query> {
match logical_literal {
LogicalLiteral::Term(term) => box TermQuery::new(term, IndexRecordOption::WithFreqs),
LogicalLiteral::Phrase(terms) => box PhraseQuery::from(terms),
LogicalLiteral::Phrase(terms) => box PhraseQuery::new(terms),
}
}