NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Match Phrase Prefix Usage
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Match Phrase Prefix Usage
editFluent DSL example
editq
.MatchPhrasePrefix(c => c
.Field(p => p.Description)
.Analyzer("standard")
.Boost(1.1)
.Query("hello worl")
.MaxExpansions(2)
.Slop(2)
.Name("named_query")
)
Object Initializer syntax example
editnew MatchPhrasePrefixQuery
{
Field = Field<Project>(p => p.Description),
Analyzer = "standard",
Boost = 1.1,
Name = "named_query",
Query = "hello worl",
MaxExpansions = 2,
Slop = 2
}
Example json output.
{
"match_phrase_prefix": {
"description": {
"_name": "named_query",
"boost": 1.1,
"query": "hello worl",
"analyzer": "standard",
"max_expansions": 2,
"slop": 2
}
}
}