How can I configure my mappings if _analyzer field has been removed in ES2.0?


(Durgesh Kumar) #1

Hi, I have been using ES 1.4 for past 2-3 months and now wanted to move to ES 2.0.
So while creating index I got to know that _analyzer field has been removed and I am getting error.

"error": {
  "root_cause": [
     {
        "type": "mapper_parsing_exception",
        "reason": "Root mapping definition has unsupported parameters:  [_analyzer: {path=languageAnalyzer}]"
     }
  ],

My mapping defined in template looks like this.

	"content" : {
			"_source" : { "enabled" : "true"},
				"_analyzer" : {
					"path" : "languageAnalyzer"
				},
				"properties" : {
					"languageAnalyzer" : { "type" : "string",
						"index" : "no"
						}

What field do i need to use now?


(system) #2