Send different queries to different types


#1

Hi,

I would like to issue different queries to different types under the same index, while leave the ranking and paging of all the results to elasticsearch. I know that if you want to issue the same request to different types you can use something like:
$ curl -XGET 'http://localhost:9200/twitter/tweet,user/_search?q=user:kimchy'
but how can I specify different queries to tweet and user types here?

Any insights or ideas will be much appreciated!


(Nik Everett) #2

Look at the type filter.


#3

you meant to issue a single query request to an index consists of two separate queries each with a type filter combined by a boolean query?


(Nik Everett) #4

Pretty much.


(system) #5