Elasticsearch get by id not working, but document exists

I see strange behaviors with identifiers on elasticsearch 1.2.0 (recently updated from 1.0.1).

The search retrieves my document, showing the correct value for _id:

[terminal]

curl 'myServer:9200/global/_search?q=someField:something

result

{
  "took": 79,
  "timed_out": false,
  "_shards": {
    "total": 12,
    "successful": 12,
    "failed": 0
  },
  "hits": {
    "total": 1,
    "max_score": 17.715034,
    "hits": [
      {
        "_index": "global",
        "_type": "user",
        "_id": "7a113e4f-44de-3b2b-a3f1-fb881da1b00a",
        ...
      }
    ]
  }
}

But there is no direct search by id:
[terminal]

curl 'myServer:9200/global/user/7a113e4f-44de-3b2b-a3f1-fb881da1b00a'

result

{
  "_index": "global",
  "_type": "user",
  "_id": "7a113e4f-44de-3b2b-a3f1-fb881da1b00a",
  "found": false
}

This seems to apply to documents that were previously updated using custom scripts.

Any ideas?

+2
source share
1 answer

I think you should go to 1.2.1. Because of the release notes ( http://www.elasticsearch.org/blog/elasticsearch-1-2-1-released/ ), there are some problems, especially with get:

` Elasticsearch 1.2.0 , . :

, 1.2.0, get. , .

+5

All Articles