Hi.
We have parent docs indexed in one index and child documents indexed in another. The reason for doing so is
- performance, since we may have thousand of children docs.
- to be able to paginate the children separately.
Previous setup was with nested fields but we got performance issues and were not be able to properly paginate the children.
The search requirement is to be able to match against parent + children, i.e. bring the parent which has matching on itself or in children and the matching children as well [optional].
So we are using aggregations for children to get the parent id-s then making another query for parents using OR
condition to be able to paginate the parents themself.
i.e. parent has matching OR has id from children matches
The current issue is that the aggregations response could be more than 10k (even multiple times) and we don't want to resolve it changing the config search.max_buckets
cause it's more or less temporary solution and will perform slow.
Any idea how to deal with this setup/requirement to be able to paginate the parents, paginate children, sort parents, search thru the children only.
Any help will be appreciated !