Where is the error on my mget request?... LoL

I am tray to do an mget on elasticSearch but this not seems work fine:

My request :

curl -XPOST "http://localhost:9200/index1/tip1/_mget?routing=XXXXX-2-yy" -d'{"ids": ["2-8","2-26","2-1152"]}'

Response :
{
"docs": [
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-8",
"exists": false
},
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-26",
"exists": false
},
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-1152",
"exists": false
}
]
}

With normal search over index . I can find the elements with this ids

curl -XPOST "http://localhost:9200/indx1/tip1/_search?routing=XXXX-2-yyy" -d'{ "query": {"match_all": {},"filtered": { "query": {"match_all": {}},"filter": {"ids": {"values": ["2-8","2-26","2-1152"]}}}}}'

{
"took": 96,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"failed": 0
},
"hits": {
"total": 2,
"max_score": 1,
"hits": [
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-8",
"_score": 1,
"_source": {
"name" : "aa1"
...
...
},
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-26",
"_score": 1,
"_source": {
"name" : "aa2"
...
...
}
}
]
}
}

Where is the error in the mget request???

Help!!!!!

Thanks

It looks like your copy and paste is not consistent. You search in index1 but you get results from custodiafe-indx1 and indx1.

Could you recreate your issue with a full curl recreation and gist it?

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 oct. 2013 à 11:52, pablo3027 pablo3027@gmail.com a écrit :

I am tray to do an mget on elasticSearch but this not seems work fine:

My request :

curl -XPOST "http://localhost:9200/index1/tip1/_mget?routing=XXXXX-2-yy"
-d'{"ids": ["2-8","2-26","2-1152"]}'

Response :
{
"docs": [
{
"_index": "custodiafe-indx1",
"_type": "tip1",
"_id": "2-8",
"exists": false
},
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-26",
"exists": false
},
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-1152",
"exists": false
}
]
}

With normal search over index . I can find the elements with this ids

curl -XPOST "http://localhost:9200/indx1/tip1/_search?routing=XXXX-2-yyy"
-d'{ "query": {"match_all": {},"filtered": { "query": {"match_all":
{}},"filter": {"ids": {"values": ["2-8","2-26","2-1152"]}}}}}'

{
"took": 96,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"failed": 0
},
"hits": {
"total": 2,
"max_score": 1,
"hits": [
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-8",
"_score": 1,
"_source": {
"name" : "aa1"
...
...
},
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-26",
"_score": 1,
"_source": {
"name" : "aa2"
...
...
}
}
]
}
}

Where is the error in the mget request???

Help!!!!!

Thanks

--
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Where-is-the-error-on-my-mget-request-LoL-tp4043181.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Thats right i am going to edit the principal post.. but where is te request problem?? Why dont find 2-8 and
2-26??

--
Saludos,
Pablo Blasco Martinavarro.

No error in your request. Sounds like routing parameter is not supported in mget.
Issue opened here: mget API should support global routing parameter · Issue #3996 · elastic/elasticsearch · GitHub

Thanks for reporting that.

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 28 oct. 2013 à 08:27, pablo3027 pablo3027@gmail.com a écrit :

Thats right .. but where is te request problem?? Why dont find 2-8 and 2-26??

My request :

curl -XPOST "http://localhost:9200/index1/tip1/_mget?routing=XXXXX-2-yy"
-d'{"ids": ["2-8","2-26","2-1152"]}'

Response :
{
"docs": [
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-8",
"exists": false
},
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-26",
"exists": false
},
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-1152",
"exists": false
}
]
}

With normal search over index . I can find the elements with this ids

curl -XPOST "http://localhost:9200/indx1/tip1/_search?routing=XXXX-2-yyy"
-d'{ "query": {"match_all": {},"filtered": { "query": {"match_all":
{}},"filter": {"ids": {"values": ["2-8","2-26","2-1152"]}}}}}'

{
"took": 96,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"failed": 0
},
"hits": {
"total": 2,
"max_score": 1,
"hits": [
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-8",
"_score": 1,
"_source": {
"name" : "aa1"
...
...
},
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-26",
"_score": 1,
"_source": {
"name" : "aa2"
...
...
}
}
]
}
}

2013/10/27 dadoonet [via Elasticsearch Users] <[hidden email]>
It looks like your copy and paste is not consistent. You search in index1 but you get results from custodiafe-indx1 and indx1.

Could you recreate your issue with a full curl recreation and gist it?

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 oct. 2013 à 11:52, pablo3027 <[hidden email]> a écrit :

I am tray to do an mget on elasticSearch but this not seems work fine:

My request :

curl -XPOST "http://localhost:9200/index1/tip1/_mget?routing=XXXXX-2-yy"
-d'{"ids": ["2-8","2-26","2-1152"]}'

Response :
{
"docs": [
{
"_index": "custodiafe-indx1",
"_type": "tip1",
"_id": "2-8",
"exists": false
},
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-26",
"exists": false
},
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-1152",
"exists": false
}
]
}

With normal search over index . I can find the elements with this ids

curl -XPOST "http://localhost:9200/indx1/tip1/_search?routing=XXXX-2-yyy"
-d'{ "query": {"match_all": {},"filtered": { "query": {"match_all":
{}},"filter": {"ids": {"values": ["2-8","2-26","2-1152"]}}}}}'

{
"took": 96,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"failed": 0
},
"hits": {
"total": 2,
"max_score": 1,
"hits": [
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-8",
"_score": 1,
"_source": {
"name" : "aa1"
...
...
},
{
"_index": "indx1",
"_type": "tip1",
"_id": "2-26",
"_score": 1,
"_source": {
"name" : "aa2"
...
...
}
}
]
}
}

Where is the error in the mget request???

Help!!!!!

Thanks

--
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Where-is-the-error-on-my-mget-request-LoL-tp4043181.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.

--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.

--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.

If you reply to this email, your message will be added to the discussion below:
http://elasticsearch-users.115913.n3.nabble.com/Where-is-the-error-on-my-mget-request-LoL-tp4043181p4043275.html
To unsubscribe from Where is the error on my mget request??... LoL, click here.
NAML

--
Saludos,
Pablo Blasco Martinavarro.

View this message in context: Re: Where is the error on my mget request??... LoL
Sent from the Elasticsearch Users mailing list archive at Nabble.com.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.