Wildcard Query Usage

edit

Fluent DSL example

edit
q
.Wildcard(c => c
    .Name("named_query")
    .Boost(1.1)
    .Field(p => p.Description)
    .Value("p*oj")
    .Rewrite(MultiTermQueryRewrite.TopTermsBoost(10))
)

Object Initializer syntax example

edit
new WildcardQuery
{
    Name = "named_query",
    Boost = 1.1,
    Field = "description",
    Value = "p*oj",
    MultiTermQueryRewrite = MultiTermQueryRewrite.TopTermsBoost(10)
}

Example json output.

{
  "wildcard": {
    "description": {
      "_name": "named_query",
      "boost": 1.1,
      "rewrite": "top_terms_boost_10",
      "value": "p*oj"
    }
  }
}