Enable usage of FuzzyTermQuery for specific fields via QueryParser (#1750)

* Make nightly Clippy mostly happy.

* Document how to produce TermSetQuery queries using QueryParser.

* Enable construction of queries using FuzzyTermQuery via the QueryParser

* Use FxHashMap instead of HashMap in the QueryParser as these hash tables are not exposed to DoS attacks.

* Use a struct instead of a tuple to improve readability.
This commit is contained in:
Adam Reichold
2023-01-04 10:11:27 +01:00
committed by GitHub
parent b22f96624e
commit 2080c370c2
14 changed files with 137 additions and 39 deletions

View File

@@ -258,7 +258,7 @@ mod tests {
let field = schema.get_field("body").unwrap();
let field_entry = schema.get_field_entry(field);
assert!(matches!(field_entry.field_type(),
&FieldType::Str(ref text_options)
FieldType::Str(text_options)
if text_options.get_indexing_options().unwrap().tokenizer() == "default"));
}