A newer version is available. For the latest information, see the
current release documentation.
Wildcard Query Usage
editWildcard Query Usage
editFluent DSL example
editq .Wildcard(c => c .Name("named_query") .Boost(1.1) .Field(p => p.Description) .Value("p*oj") .Rewrite(MultiTermQueryRewrite.TopTermsBoost(10)) )
Object Initializer syntax example
editnew WildcardQuery { Name = "named_query", Boost = 1.1, Field = "description", Value = "p*oj", Rewrite = MultiTermQueryRewrite.TopTermsBoost(10) }
Example json output.
{ "wildcard": { "description": { "_name": "named_query", "boost": 1.1, "rewrite": "top_terms_boost_10", "value": "p*oj" } } }
Fluent DSL example
editq .Wildcard(c => c .Name("named_query") .Boost(1.1) .Field(p => p.Description) .Wildcard("p*oj") .Rewrite(MultiTermQueryRewrite.TopTermsBoost(10)) )
Object Initializer syntax example
editnew WildcardQuery { Name = "named_query", Boost = 1.1, Field = "description", Wildcard = "p*oj", Rewrite = MultiTermQueryRewrite.TopTermsBoost(10) }
Example json output.
{ "wildcard": { "description": { "_name": "named_query", "boost": 1.1, "rewrite": "top_terms_boost_10", "wildcard": "p*oj" } } }