I am trying to combine 2 user search queries using AND and OR as operation.
I am aware of combining queries where we can merge filters, but I want to
merge entire queries like { {BIG Elastic Query1} AND {BIG Elastic Query2} }.
Details
For instance say a user performs a search for "batman in movies type with
filters of Christian and Bale" and another query "Dark Knight in type
tvshows with filters of Christopher Nolan". I want to combine both queries
so I can look for both batman movies and Dark Knight tvshows, but not Dark
knight movies or batman tvshows.
For example, for the given queries
I just want to run Query1 OR Query2 in the elasticsearch.
Query 1:
On Fri, Feb 20, 2015 at 8:29 AM, Debashish Paul shimanbb@gmail.com wrote:
Hi,
Question
I am trying to combine 2 user search queries using AND and OR as
operation. I am aware of combining queries where we can merge filters, but
I want to merge entire queries like { {BIG Elastic Query1} AND {BIG Elastic
Query2} }.
Details
For instance say a user performs a search for "batman in movies type with
filters of Christian and Bale" and another query "Dark Knight in type
tvshows with filters of Christopher Nolan". I want to combine both queries
so I can look for both batman movies and Dark Knight tvshows, but not Dark
knight movies or batman tvshows.
For example, for the given queries
I just want to run Query1 OR Query2 in the elasticsearch.
Query 1:
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.