Skip to content

Elasticsearch wont apply not_analyzed into my mapping #21

@marko-hi

Description

@marko-hi

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" ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions