Elasticsearch wont apply not_analyzed into my mapping <p>When I try to apply "not_analyzed" into my ES mapping it doesnt work.</p> <p>I am using this package for ES in Laravel - <a href="https://github.com/adamfairholm/Elasticquent" rel="nofollow">Elasticquent</a></p> <p>My mapping looks like:</p> <pre><code>'ad_title' =&gt; [ 'type' =&gt; 'string', 'analyzer' =&gt; 'standard' ], 'ad_type' =&gt; [ 'type' =&gt; 'integer', 'index' =&gt; 'not_analyzed' ], 'ad_type' =&gt; [ 'type' =&gt; 'integer', 'index' =&gt; 'not_analyzed' ], 'ad_state' =&gt; [ 'type' =&gt; 'integer', 'index' =&gt; 'not_analyzed' ], </code></pre> <p>Afterwards I do an API get call to view the mapping and it will output:</p> <pre><code>"testindex": { "mappings": { "ad_ad": { "properties": { "ad_city": { "type": "integer" }, "ad_id": { "type": "long" }, "ad_state": { "type": "integer" }, "ad_title": { "type": "string", "analyzer": "standard" }, "ad_type": { "type": "integer" }, </code></pre> <p>Note that not_analyzed is missing. I cant see any errors/warnings in my logs either.</p>