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.
Indices Query Usage
editIndices Query Usage
editFluent DSL example
editq .Indices(c => c .Name("named_query") .Boost(1.1) .Indices(Index<Project>()) .Query(qq => qq.MatchAll()) .NoMatchQuery(qq => qq.MatchAll(m => m.Name("no_match"))) )
Object Initializer syntax example
editnew IndicesQuery() { Name = "named_query", Boost = 1.1, Indices = Index<Project>(), Query = new MatchAllQuery(), NoMatchQuery = new MatchAllQuery { Name = "no_match" } }
Example json output.
{ "indices": { "_name": "named_query", "boost": 1.1, "indices": [ "project" ], "no_match_query": { "match_all": { "_name": "no_match" } }, "query": { "match_all": {} } } }