Search across types in query body


(Manuel Vacelet-2) #1

Hi there,

I'm playing with search across types with queries of form:
curl -XPOST 'localhost:9200/trk/110,112/_search ...

And I'm wondering if there is a way to specify the types I want to search
on in the query body.
Like:
curl -XPOST 'localhost:9200/trk/_search -d '{
...
}'

It seems that the feature exists for cross-index searches[1] but I fail to
find the cross-type equivalent.

[1]
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-indices-query.html

Manuel

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAP66XbHe-PQS1cy3MmPcgTMMLj%2BPuZRK5MtKbb7ytZj3g_oGUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2