WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Fuzzy Query Usage
editFuzzy Query Usage
editFluent DSL example
editq .Fuzzy(c => c .Name("named_query") .Boost(1.1) .Field(p => p.Description) .Fuzziness(Fuzziness.Auto) .Value("ki") .MaxExpansions(100) .PrefixLength(3) .Rewrite(MultiTermQueryRewrite.ConstantScore) .Transpositions() )
Object Initializer syntax example
editnew FuzzyQuery { Name = "named_query", Boost = 1.1, Field = "description", Fuzziness = Fuzziness.Auto, Value = "ki", MaxExpansions = 100, PrefixLength = 3, MultiTermQueryRewrite = MultiTermQueryRewrite.ConstantScore, Transpositions = true }
Example json output.
{ "fuzzy": { "description": { "_name": "named_query", "boost": 1.1, "fuzziness": "AUTO", "max_expansions": 100, "prefix_length": 3, "rewrite": "constant_score", "transpositions": true, "value": "ki" } } }