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.
Has Parent Query Usage
editHas Parent Query Usage
editFluent DSL example
editq .HasParent<Developer>(c => c .Name("named_query") .Boost(1.1) .InnerHits(i => i.Explain()) .Score(true) .Query(qq => qq.MatchAll()) .IgnoreUnmapped(true) )
Object Initializer syntax example
editnew HasParentQuery { Name = "named_query", Boost = 1.1, Type = Infer.Type<Developer>(), InnerHits = new InnerHits { Explain = true }, Query = new MatchAllQuery(), Score = true, IgnoreUnmapped = true }
Example json output.
{ "has_parent": { "_name": "named_query", "boost": 1.1, "type": "developer", "score": true, "ignore_unmapped": true, "query": { "match_all": {} }, "inner_hits": { "explain": true } } }