# \# number value change when insert 11258999069452421

**URL:** <https://discuss.elastic.co/t/number-value-change-when-insert-11258999069452421/372598>\
**Category:** Elastic Search\
**Created:** [December 29, 2024, 4:06pm UTC](https://discuss.elastic.co/t/number-value-change-when-insert-11258999069452421/372598 "2024-12-29T16:06:21Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![chenqi](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@chenqi](https://discuss.elastic.co/u/chenqi)\
**Post date:** [December 29, 2024, 4:06pm UTC](https://discuss.elastic.co/t/number-value-change-when-insert-11258999069452421/372598/1 "2024-12-29T16:06:21Z")

</div>

#Elastic Search

I create a new `index` with

```auto
PUT /cq_sample_index
{
  "mappings": {
    "properties": {
      "code": {
        "type": "long"
      },
      "code2": {
        "type": "keyword"
      },
      "code3": {
        "type": "keyword"
      },
      "category": {
        "type": "keyword"
      },
      "description": {
        "type": "text"
      }
    }
  }
}

```

I insert a doc with

```auto
POST /cq_sample_index/_doc/2
{
  "code": 11258999069452421,
  "code2": 11258999069452421,
  "code3": "11258999069452421",
  "category": "books",
  "description": "A book about advanced Elasticsearch usage and optimization."
}

```

I got this

```auto
      {
        "_index": "cq_sample_index",
        "_id": "2",
        "_score": 1,
        "_source": {
          "code": 11258999069452420,
          "code2": 11258999069452420,
          "code3": "11258999069452421",
          "category": "books",
          "description": "A book about advanced Elasticsearch usage and optimization."
        }
      }

```

As you can see , **the value of `code` and `code2` changed**

So why ?

I've tried es8.11.1\ es8.11.4 \ es8.12.1  
and I insert data with kibana and python code ， same result

---

_[View the full topic](https://discuss.elastic.co/t/number-value-change-when-insert-11258999069452421/372598)._
