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 No Match Query Usage
editIndices No Match Query Usage
editFluent DSL example
editq .Indices(c => c .Name("named_query") .Boost(1.1) .Indices(Nest.Indices.All) .Query(qq => qq.MatchAll()) .NoMatchQuery(NoMatchShortcut.All) )
Object Initializer syntax example
editnew IndicesQuery() { Name = "named_query", Boost = 1.1, Indices = Nest.Indices.All, Query = new MatchAllQuery(), NoMatchQuery = new NoMatchQueryContainer { Shortcut = NoMatchShortcut.All } }
Example json output.
{ "indices": { "_name": "named_query", "boost": 1.1, "indices": [ "_all" ], "no_match_query": "all", "query": { "match_all": {} } } }