Search over multiple heterogenous types

I have several types defined in my elasticsearch index like "product",
"manufacturer", "locales" etc. I want to search across all these types
in a single query. Each type has different number of fields. But all
types have a field called "NAME" which is searchable and a field
called "TYPE" which holds its type. How do I create a search query to
retrive a list of heterogenous results?

--

You can specify a list of types that you want to search on URL or not
specify type at all if you want to search all types at the same
time: http://www.elasticsearch.org/guide/reference/api/search/indices-types.html

On Monday, November 12, 2012 6:47:09 AM UTC-5, Prakhar Goel wrote:

I have several types defined in my elasticsearch index like "product",
"manufacturer", "locales" etc. I want to search across all these types
in a single query. Each type has different number of fields. But all
types have a field called "NAME" which is searchable and a field
called "TYPE" which holds its type. How do I create a search query to
retrive a list of heterogenous results?

--