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.
Terms Lookup Query Usage
editTerms Lookup Query Usage
editFluent DSL example
editq .Terms(c => c .Name("named_query") .Boost(1.1) .Field(p => p.Description) .TermsLookup<Developer>(e => e .Path(p => p.LastName) .Id(12) .Routing("myroutingvalue") ) )
Object Initializer syntax example
editnew TermsQuery { Name = "named_query", Boost = 1.1, Field = "description", TermsLookup = new FieldLookup { Id = 12, Index = Index<Developer>(), Type = Type<Developer>(), Path = Field<Developer>(p=>p.LastName), Routing = "myroutingvalue" } }
Example json output.
{ "terms": { "_name": "named_query", "boost": 1.1, "description": { "id": 12, "index": "devs", "path": "lastName", "type": "developer", "routing": "myroutingvalue" } } }