A newer version is available. For the latest information, see the
current release documentation.
Parent Id Query Usage
editParent Id Query Usage
editThe parent_id
query can be used to find child documents which belong to a particular parent.
See the Elasticsearch documentation on parent_id query for more details.
Fluent DSL example
editq .ParentId(p => p .Name("named_query") .Type<CommitActivity>() .Id(Project.Instance.Name) )
Object Initializer syntax example
editnew ParentIdQuery { Name = "named_query", Type = Infer.Relation<CommitActivity>(), Id = Project.Instance.Name }
Example json output.
{ "parent_id": { "_name": "named_query", "type": "commits", "id": "Durgan LLC" } }