# Force field to be analysed in indices

**URL:** <https://discuss.elastic.co/t/force-field-to-be-analysed-in-indices/46280>\
**Category:** Elasticsearch\
**Created:** [April 4, 2016, 6:18pm UTC](https://discuss.elastic.co/t/force-field-to-be-analysed-in-indices/46280 "2016-04-04T18:18:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![pittoch](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@pittoch](https://discuss.elastic.co/u/pittoch)\
**Post date:** [April 4, 2016, 6:18pm UTC](https://discuss.elastic.co/t/force-field-to-be-analysed-in-indices/46280/1 "2016-04-04T18:18:54Z")

</div>

In an index. How can we force a field to be analysed ?  
I have some fiels that are note analysed. S

Thanks.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 4, 2016, 11:58pm UTC](https://discuss.elastic.co/t/force-field-to-be-analysed-in-indices/46280/2 "2016-04-04T23:58:15Z")

</div>

Unless you set them as not analysed, they will be analysed by default.

Maybe if you provide your mapping we can make some better recommendations.

---

<div class="post-metadata">

**Author:** ![pittoch](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@pittoch](https://discuss.elastic.co/u/pittoch)\
**Post date:** [April 5, 2016, 3:13pm UTC](https://discuss.elastic.co/t/force-field-to-be-analysed-in-indices/46280/3 "2016-04-05T15:13:02Z")

</div>

I don't set not analysed, perhaps you can see that I have some fields that are not analysed:

 ![](https://us1.discourse-cdn.com/elastic/original/2X/e/eb27c587f378fa0b7657b3c3fceee54d6dfdd1b5.png)

My logstash config is:

> input {  
> file {  
> path =\> "E:/STOZ/TDB/Datasource/Output/baie\_z\_Array\_histo\*.csv"  
> type =\> "core2"  
> start\_position =\> beginning  
> }  
> }

> filter {  
> csv {  
> columns =\> [  
> "DATE",  
> "BAIE",  
> "WP\_USED\_POURCENT",  
> "WP\_LIMIT",  
> "WP\_USED",  
> "MBS\_READ",  
> "MBS\_WRITE",  
> "IOS\_WRITE",  
> "IOS\_READ",  
> "RESPT\_WRITE",  
> "RESPT\_READ",  
> "MBS",  
> "IOS",  
> "PERIODE",  
> "SEMAINE",  
> "JOUR",  
> "PERIODEJ"  
> ]  
> separator =\> ";"  
> }  
> date {  
> match =\> ["DATE" , "yyyy-MM-dd HH:mm:ss"]  
> }  
> mutate {  
> convert =\> ["WP\_USED\_POURCENT", "float"]  
> convert =\> ["WP\_LIMIT", "float"]  
> convert =\> ["WP\_USED", "float"]  
> convert =\> ["MBS\_READ", "float"]  
> convert =\> ["MBS\_WRITE", "float"]  
> convert =\> ["IOS\_WRITE", "float"]  
> convert =\> ["IOS\_READ", "float"]  
> convert =\> ["RESPT\_WRITE", "float"]  
> convert =\> ["RESPT\_READ", "float"]  
> convert =\> ["MBS", "float"]  
> convert =\> ["IOS", "float"]  
> }

> }

> output {  
> stdout {}  
> elasticsearch {  
> document\_id =\> "%{@timestamp}\_%{BAIE}"  
> hosts =\> ["10.155.91.101:9200"]  
> action =\> "index"  
> index =\> "index\_stoz\_baie\_array\_histo"  
> }  
> }

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 5, 2016, 8:33pm UTC](https://discuss.elastic.co/t/force-field-to-be-analysed-in-indices/46280/4 "2016-04-05T20:33:55Z")

</div>

Not your LS config, your ES mapping - [https://www.elastic.co/guide/en/elasticsearch/guide/master/mapping-intro.html#\_viewing\_the\_mapping](https://www.elastic.co/guide/en/elasticsearch/guide/master/mapping-intro.html#_viewing_the_mapping)

---

<div class="post-metadata">

**Author:** ![pittoch](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@pittoch](https://discuss.elastic.co/u/pittoch)\
**Post date:** [April 6, 2016, 2:20pm UTC](https://discuss.elastic.co/t/force-field-to-be-analysed-in-indices/46280/5 "2016-04-06T14:20:13Z")

</div>

Hi Mark,

This is my config :

```
 {
  "index_stoz_baie_array_histo": {
    "mappings": {
      "WP_USED": {
        "properties": {
          "tag": {
            "type": "string"
          }
        }
      },
      "core2": {
        "properties": {
          "@timestamp": {
            "type": "date",
            "format": "strict_date_optional_time||epoch_millis"
          },
          "@version": {
            "type": "string"
          },
          "BAIE": {
            "type": "string"
          },
          "DATE": {
            "type": "string"
          },
          "IOS": {
            "type": "double"
          },
          "IOS_READ": {
            "type": "double"
          },
          "IOS_WRITE": {
            "type": "double"
          },
          "JOUR": {
            "type": "string"
          },
          "MBS": {
            "type": "double"
          },
          "MBS_READ": {
            "type": "double"
          },
          "MBS_WRITE": {
            "type": "double"
          },
          "PERIODE": {
            "type": "string"
          },
          "PERIODEJ": {
            "type": "string"
          },
          "RESPT_READ": {
            "type": "double"
          },
          "RESPT_WRITE": {
            "type": "double"
          },
          "SEMAINE": {
            "type": "string"
          },
          "WP_LIMIT": {
            "type": "double"
          },
          "WP_USED": {
            "type": "double"
          },
          "WP_USED_POURCENT": {
            "type": "double"
          },
          "host": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "tags": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 6, 2016, 9:35pm UTC](https://discuss.elastic.co/t/force-field-to-be-analysed-in-indices/46280/6 "2016-04-06T21:35:42Z")

</div>

There doesn't appear to be any fields that aren't analysed there.

---

<div class="post-metadata">

**Author:** ![pittoch](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@pittoch](https://discuss.elastic.co/u/pittoch)\
**Post date:** [April 7, 2016, 6:41pm UTC](https://discuss.elastic.co/t/force-field-to-be-analysed-in-indices/46280/7 "2016-04-07T18:41:47Z")

</div>

I only have this problem on indices with many fields.  
There is no limit linked to the number of fields to be analysed?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 7, 2016, 9:33pm UTC](https://discuss.elastic.co/t/force-field-to-be-analysed-in-indices/46280/8 "2016-04-07T21:33:31Z")

</div>

No there is not.

---

<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:** [July 5, 2017, 11:01pm UTC](https://discuss.elastic.co/t/force-field-to-be-analysed-in-indices/46280/9 "2017-07-05T23:01:22Z")

</div>


