Send different queries to different types

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!

Look at the type filter.

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?

Pretty much.