# Documents are not getting inserted in ES6.2

**URL:** <https://discuss.elastic.co/t/documents-are-not-getting-inserted-in-es6-2/267968>\
**Category:** Elasticsearch\
**Created:** [March 22, 2021, 10:49am UTC](https://discuss.elastic.co/t/documents-are-not-getting-inserted-in-es6-2/267968 "2021-03-22T10:49:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajat\_singh1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajat_singh1/32/85803_2.png) [@rajat\_singh1](https://discuss.elastic.co/u/rajat_singh1)\
**Post date:** [March 22, 2021, 10:49am UTC](https://discuss.elastic.co/t/documents-are-not-getting-inserted-in-es6-2/267968/1 "2021-03-22T10:49:27Z")

</div>

Hi,

I'm trying to insert documents in ES 6.2. My concern is when I'm inserting data into ES by mapping one of index and mentioning

**"index": false,**  
This is my mapping query:

```
' "state": {
  "type": "text",
  "index": false,
  "fields": {
    "keyword": {
      "type": "keyword",
      "ignore_above": 256
    }
  }
} 

```

Data is not getting populating in ES 6.2. And same code is inserting data when I'm removing \*\* "index": false,\*\* field from mapping .

Can you please quickly help me to find the issue. I've written the code in JAVA

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 6, 2021, 4:26pm UTC](https://discuss.elastic.co/t/documents-are-not-getting-inserted-in-es6-2/267968/2 "2021-04-06T16:26:21Z")

</div>

Could you provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script is something anyone can copy and paste in Kibana dev console, click on the run button to reproduce your use case. It will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 4, 2021, 4:26pm UTC](https://discuss.elastic.co/t/documents-are-not-getting-inserted-in-es6-2/267968/3 "2021-05-04T16:26:51Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
