Skip to main content
added 674 characters in body
Source Link
Rajeev
  • 5.1k
  • 10
  • 47
  • 69

I have an elastic search object in which one field is an array type. now i want to apply a different analyser than standard default one. when i pass analyzer in index definition, it is throwing error. how can i do this?

In the below example, skills contains an array of values. all i want is to apply different analysers and see results. how can i achieve that?

 "skills": { "type": "object", "analyzer": "simple" }, "profile": { "type": "text", "analyzer": "simple" }, "job_title": { "type": "text", "analyzer": "simple" }, 

Getting below error:

{ "error": { "root_cause": [ { "type": "mapper_parsing_exception", "reason": "Mapping definition for [skills] has unsupported parameters: [analyzer : simple]" } ], "type": "mapper_parsing_exception", "reason": "Failed to parse mapping [_doc]: Mapping definition for [skills] has unsupported parameters: [analyzer : simple]", "caused_by": { "type": "mapper_parsing_exception", "reason": "Mapping definition for [skills] has unsupported parameters: [analyzer : simple]" } }, "status": 400 } 

I have an elastic search object in which one field is an array type. now i want to apply a different analyser than standard default one. when i pass analyzer in index definition, it is throwing error. how can i do this?

In the below example, skills contains an array of values. all i want is to apply different analysers and see results. how can i achieve that?

 "skills": { "type": "object", "analyzer": "simple" }, "profile": { "type": "text", "analyzer": "simple" }, "job_title": { "type": "text", "analyzer": "simple" }, 

I have an elastic search object in which one field is an array type. now i want to apply a different analyser than standard default one. when i pass analyzer in index definition, it is throwing error. how can i do this?

In the below example, skills contains an array of values. all i want is to apply different analysers and see results. how can i achieve that?

 "skills": { "type": "object", "analyzer": "simple" }, "profile": { "type": "text", "analyzer": "simple" }, "job_title": { "type": "text", "analyzer": "simple" }, 

Getting below error:

{ "error": { "root_cause": [ { "type": "mapper_parsing_exception", "reason": "Mapping definition for [skills] has unsupported parameters: [analyzer : simple]" } ], "type": "mapper_parsing_exception", "reason": "Failed to parse mapping [_doc]: Mapping definition for [skills] has unsupported parameters: [analyzer : simple]", "caused_by": { "type": "mapper_parsing_exception", "reason": "Mapping definition for [skills] has unsupported parameters: [analyzer : simple]" } }, "status": 400 } 
Source Link
Rajeev
  • 5.1k
  • 10
  • 47
  • 69

adding analyser in ElasticSearch field of type array

I have an elastic search object in which one field is an array type. now i want to apply a different analyser than standard default one. when i pass analyzer in index definition, it is throwing error. how can i do this?

In the below example, skills contains an array of values. all i want is to apply different analysers and see results. how can i achieve that?

 "skills": { "type": "object", "analyzer": "simple" }, "profile": { "type": "text", "analyzer": "simple" }, "job_title": { "type": "text", "analyzer": "simple" },