Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticsearch wont apply not_analyzed into my mapping #21

Open
marko-hi opened this issue Feb 27, 2015 · 1 comment
Open

Elasticsearch wont apply not_analyzed into my mapping #21

marko-hi opened this issue Feb 27, 2015 · 1 comment

Comments

@marko-hi
Copy link

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

@dschniepp
Copy link
Contributor

@marko-hi did you use the putMapping() method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants