ES=2.4.0
My configuration in elasticsearch.yml has default analyzer : keyword
index.analysis.analyzer.default.type: keyword
Now i've a field which stores notes and thus i want to analyze only this particular field. Thus i'm doing:
PUT /index10?pretty
{
"mappings": {
"my_type": {
"properties": {
"Notes_field": {
"type": "string",
"analyzer": "standard"
}
}
}
}
}
Now when i try to index my document, i get the error:
Document contains at least one immense term in field=\"_all\"
So i went back and corrected my mapping to make _all analyzed explicitly (as it might be using the default keyword analyzer):
PUT /index10?pretty
{
"mappings": {
"my_type": {
"properties": {
"Notes_field": {
"type": "string",
"analyzer": "standard"
}
}
}
},
"_all": {
"analyzer": "standard"
}
}
But upon indexing, i get the same error as mentioned above. What am i doing wrong?
Please note that i don't want to disable the _all field. Also i don't want to exclude the Notes_fields from _all.