# How to get detail config of type?

**URL:** <https://discuss.elastic.co/t/how-to-get-detail-config-of-type/76932>\
**Category:** Elasticsearch\
**Created:** [March 1, 2017, 7:56am UTC](https://discuss.elastic.co/t/how-to-get-detail-config-of-type/76932 "2017-03-01T07:56:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![2010](https://avatars.discourse-cdn.com/v4/letter/2/71c47a/32.png) [@2010](https://discuss.elastic.co/u/2010)\
**Post date:** [March 1, 2017, 7:56am UTC](https://discuss.elastic.co/t/how-to-get-detail-config-of-type/76932/1 "2017-03-01T07:56:25Z")

</div>

If i use the URL (GET /qa/\_mapping) to get field config , i will get this :

```auto
{
  "qa": {
    "mappings": {
      "questionAndAnswer": {
        "properties": {
          "answerCount": {
            "type": "integer"
          },
          "content": {
            "type": "text",
            "analyzer": "smartcn"
          }
        }
      }
    }
  }
} 

```

I can not know the field -- "type" whether be stored or be indexed .

---

<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:** [March 1, 2017, 8:16am UTC](https://discuss.elastic.co/t/how-to-get-detail-config-of-type/76932/2 "2017-03-01T08:16:26Z")

</div>

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

It depends. Type integer is indexed and not stored. Look at the default values at [https://www.elastic.co/guide/en/elasticsearch/reference/5.2/number.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.2/number.html)

---

<div class="post-metadata">

**Author:** ![2010](https://avatars.discourse-cdn.com/v4/letter/2/71c47a/32.png) [@2010](https://discuss.elastic.co/u/2010)\
**Post date:** [March 1, 2017, 11:00am UTC](https://discuss.elastic.co/t/how-to-get-detail-config-of-type/76932/3 "2017-03-01T11:00:30Z")

</div>

This is my mappings:

```auto
PUT /qa
{
  
  "settings": {
    "number_of_shards": 3,
    "number_of_replicas": 0
  }, 
  "mappings": {
    "questionAndAnswer":{
      "properties":{
        "answerCount":{
          "type": "integer",
          "index": false
        },
        "content":{
          "type": "text",
          "analyzer": "smartcn"
        }
      }
    }
  }
}

```

My question is how to know answerCount indexed?

---

<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:** [March 1, 2017, 11:14am UTC](https://discuss.elastic.co/t/how-to-get-detail-config-of-type/76932/4 "2017-03-01T11:14:29Z")

</div>

I don't understand your question sorry.

But if you set `index` to `false` then it won't be indexed.

---

<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:** [March 29, 2017, 11:14am UTC](https://discuss.elastic.co/t/how-to-get-detail-config-of-type/76932/5 "2017-03-29T11:14:41Z")

</div>

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