/_all/type/_search doesn't work anymore?


(Rémi Pauchet) #1

Hi,

I'm trying to perform a search on all the indices for a given type and I
get a missing index error.

curl -XGET 'http://localhost:9200/_all/log/_search?q=user:john.doe'
{"error":"IndexMissingException[[_all] missing]","status":404}

This syntax is described in the documentation :

http://www.elasticsearch.org/guide/reference/api/search/indices-types.html

curl -XGET 'http://localhost:9200/_search?q=user:john.doe'

is working but on all types

Tested with 0.19.9. Is this the expected behaviour ? Is there another
method to search on all indices for a type ?

Thanks for your support !

--


(David Pilato) #2

It could be relative to this issue:


https://github.com/elasticsearch/elasticsearch/issues/2205

HTH
David

Le 28 août 2012 à 09:42, "Rémi Pauchet" remi.pauchet@gmail.com a écrit :

Hi,

I'm trying to perform a search on all the indices for a given type and I get
a missing index error.

curl -XGET 'http://localhost:9200/_all/log/_search?q=user:john.doe'
{"error":"IndexMissingException[[_all] missing]","status":404}

This syntax is described in the documentation :

http://www.elasticsearch.org/guide/reference/api/search/indices-types.html

curl -XGET 'http://localhost:9200/_search?q=user:john.doe'

is working but on all types

Tested with 0.19.9. Is this the expected behaviour ? Is there another method
to search on all indices for a type ?

Thanks for your support !

--

--
David Pilato
http://www.scrutmydocs.org/
http://dev.david.pilato.fr/
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--


(Shay Banon) #3

Yes, it is the same bug.

On Aug 28, 2012, at 11:01 AM, David Pilato david@pilato.fr wrote:

It could be relative to this issue: https://github.com/elasticsearch/elasticsearch/issues/2205

HTH
David

Le 28 août 2012 à 09:42, "Rémi Pauchet" remi.pauchet@gmail.com a écrit :

Hi,

I'm trying to perform a search on all the indices for a given type and I get a missing index error.

curl -XGET 'http://localhost:9200/_all/log/_search?q=user:john.doe'
{"error":"IndexMissingException[[_all] missing]","status":404}

This syntax is described in the documentation :

http://www.elasticsearch.org/guide/reference/api/search/indices-types.html

curl -XGET 'http://localhost:9200/_search?q=user:john.doe'

is working but on all types

Tested with 0.19.9. Is this the expected behaviour ? Is there another method to search on all indices for a type ?

Thanks for your support !

--

--
David Pilato
http://www.scrutmydocs.org/
http://dev.david.pilato.fr/
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

--


(system) #4