Aconex/elasticsearch-head — Issue #33: problem displaying long values in the UI.
Author: alexsisu
Created: 2012-02-13 13:20:33+00:00
State: open

Problem:
index a document containing a Long field.
eg: conversation_id: 1000000000000000001

check it in the ui:
you'll see: 1000000000000000000 (notice the transformed digit from 1 into 0).

Steps to reproduce:

curl -XPUT 'http://localhost:9200/testindex' -d '{
"settings":
{
"number_of_shards": 1,
"number_of_replicas": 0
}
}
'

curl -XPUT 'http://localhost:9200/testindex/posting/_mapping' -d '
{ "posting": {
"properties":
{
"id": {"type": "long", "store": "yes"},
"body": {"type": "string", "store": "yes"},
"conversation_id": {"type": "long", "store": "yes"}
}
}
}
'

curl -XPOST 'http://localhost:9200/_bulk?pretty=true' -d '
{"index" : { "_index" : "testindex", "_type" : "posting", "_id" : "1" }}
{"body":"hello world", "conversation_id":1000000000000000001, "id":1}
'