I am using elasticsearch 1.7.0
My types are as follows
Account - id, accno,name,address
Child 1: Contact- name, email
Child 2: Phone - phno
I am looking for an efficient way of making a search with following needs
- Apply AND condition on all search strings entered (General search with single text field)
- If a match is found in child, response should have the following
Need to return parent
Child in inner-hits
Highlight which highlights all search strings - If all are matching in parent, just return parent with highlight
- If match is found in child+parent, response same as 2