Is it necessary to re-analyze an elasticsearch copy_to if the original content has been analyzed? -
we have elasticsearch mapping using copy_to (custom _all). used queries , not stored. analyze original file_content_de using "analyzer": "german". need analyze copy_to, es documentation not clear this?
es documentation: https://www.elastic.co/guide/en/elasticsearch/guide/2.x/custom-all.html
"attachment_contents_de": { "type": "string" }, ... "file_content_de": { "type": "string", "analyzer": "german", "copy_to": "attachment_contents_de", "include_in_all": false, "store":true }, ...
yes have analyze copied field seperately official documentations mentions.
and doesn't mean re-analyze, copy_to copies string values field, field in should have own definition along analyzers defined
mappings of first_name , last_name fields have no bearing on how full_name field indexed. full_name field copies string values other 2 fields, indexes them according mapping of full_name field only.
you can define mappings attachment_contents_de
suitable analyzer.
thanks
Comments
Post a Comment