However when I view my mappings then 'index' => 'not_analyzed' wont show. I have made sure that I didnt have any existing data / remapped. Even made a new index. The 'index' => 'not_analyzed' will never show.
doing _mapping GET api call outputs my mapping as:
My mappings look like this:
'ad_title' => [ 'type' => 'string', 'analyzer' => 'standard' ], 'ad_type' => [ 'type' => 'integer', 'index' => 'not_analyzed' ], 'ad_type' => [ 'type' => 'integer', 'index' => 'not_analyzed' ], 'ad_state' => [ 'type' => 'integer', 'index' => 'not_analyzed' ],
However when I view my mappings then 'index' => 'not_analyzed' wont show. I have made sure that I didnt have any existing data / remapped. Even made a new index. The 'index' => 'not_analyzed' will never show.
doing _mapping GET api call outputs my mapping as:
"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" },
as you can see 'index' => 'not_analyzed' is not visible.
Asking on Stackoverflow someone posted me their output that looks like:
{ "hilden1": { "mappings": { "type1": { "properties": { "indexSpecified": { "type": "string", "index": "not_analyzed" }, "regular": { "type": "string" } } } } } }
As you can see "index": "not_analyzed" is visible.
So does Elasticquent dont support "index": "not_analyzed" ?