I'm new in Elastic Search. i'm developing asp.net(c#) search application using ES.
i have used two tables. First one is Parent table and another one is Child Table. i can able to retrieve parent records using HasChildQuery. what my question is , i want to combine the parent and child table queries in single search query.
Ex:
Parent Table : [parent_type]
PC1 | PC2 | PC3 | PC4
R1 A B C
R2 AA BB CC
R3 AAA BBB CCC
Child Table : [child_type]
PC1 | CC1 | CC2 | CC3
R1 X Y Z
R1 XX YY ZZ
R2 XXX YYY ZZZ
I need the query string like this.
( PC1:"R1" AND [child_type].CC1:"XX" )
Please provide the querystring for the above.
Note: Earlier i have used Lucene.Net. Now i converted into Elastic Search and using the Lucene parcer.
I'm new in Elastic Search. i'm developing asp.net(c#) search application
using ES.
i have used two tables. First one is Parent table and another one is Child
Table. i can able to retrieve parent records using HasChildQuery. what my
question is , i want to combine the parent and child table queries in single
search query.
Ex:
Parent Table : [parent_type]
PC1 | PC2 | PC3 | PC4
R1 A B C
R2 AA BB CC
R3 AAA BBB CCC
Child Table : [child_type]
PC1 | CC1 | CC2 | CC3
R1 X Y Z
R1 XX YY ZZ
R2 XXX YYY ZZZ
I need the query string like this.
( PC1:"R1" AND [child_type].CC1:"XX" )
Please provide the querystring for the above.
Note: Earlier i have used Lucene.Net. Now i converted into Elastic Search
and using the Lucene parcer.
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.