A newer version is available. For the latest information, see the
current release documentation.
Common Terms Usage
editCommon Terms Usage
editFluent DSL example
editq .CommonTerms(c => c .Field(p => p.Description) .Analyzer("standard") .Boost(1.1) .CutoffFrequency(0.001) .HighFrequencyOperator(Operator.And) .LowFrequencyOperator(Operator.Or) .MinimumShouldMatch(1) .Name("named_query") .Query("nelly the elephant not as a") )
Object Initializer syntax example
editnew CommonTermsQuery() { Field = Field<Project>(p => p.Description), Analyzer = "standard", Boost = 1.1, CutoffFrequency = 0.001, HighFrequencyOperator = Operator.And, LowFrequencyOperator = Operator.Or, MinimumShouldMatch = 1, Name = "named_query", Query = "nelly the elephant not as a" }
Example json output.
{ "common": { "description": { "_name": "named_query", "boost": 1.1, "query": "nelly the elephant not as a", "cutoff_frequency": 0.001, "low_freq_operator": "or", "high_freq_operator": "and", "minimum_should_match": 1, "analyzer": "standard" } } }