{
parent_field: "this is a parent",
children: [
{child_field: 12.3},
{child_field: 9.6},
{child_field: 4.5}
]
}
Now when I search children.child_field: [1.3 TO 4.6], I would get the whole document including all children. Is it possible to just retrieve the document with children which matches search criteria, that is:
expecting:
{
parent_field: "this is a parent",
children: [
{child_field: 4.5}
]
}
instead of:
{
parent_field: "this is a parent",
children: [
{child_field: 12.3},
{child_field: 9.6},
{child_field: 4.5}
]
}
{
parent_field: "this is a parent",
children: [
{child_field: 12.3},
{child_field: 9.6},
{child_field: 4.5}
]
}
Now when I search children.child_field: [1.3 TO 4.6], I would get the whole
document including all children. Is it possible to just retrieve the
document with children which matches search criteria, that is:
expecting:
{
parent_field: "this is a parent",
children: [
{child_field: 4.5}
]
}
instead of:
{
parent_field: "this is a parent",
children: [
{child_field: 12.3},
{child_field: 9.6},
{child_field: 4.5}
]
{
parent_field: "this is a parent",
children: [
{child_field: 12.3},
{child_field: 9.6},
{child_field: 4.5}
]
}
Now when I search children.child_field: [1.3 TO 4.6], I would get the whole
document including all children. Is it possible to just retrieve the
document with children which matches search criteria, that is:
expecting:
{
parent_field: "this is a parent",
children: [
{child_field: 4.5}
]
}
instead of:
{
parent_field: "this is a parent",
children: [
{child_field: 12.3},
{child_field: 9.6},
{child_field: 4.5}
]
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.