Currently we were using Elasticsearch 1.3.0 and supported Mapper Plugin for the same. Now we are moving Elasticsearch 1.5.2 so we need to have the updated mapper att plugin as well.
As in the latest one content is deprecated by _content, so in our application we need to change the content to _content while retrieving the document. So here my question is like is there way to re index the Elasticsearch data so that older records can also be returned using _content instead of content (any way like changing some conf or doing re indexing or something else)
Currently we were using Elasticsearch 1.3.0 and supported Mapper Plugin for
the same. Now we are moving Elasticsearch 1.5.2 so we need to have the
updated mapper att plugin as well.
As in the latest one content is deprecated by _content, so in our
application we need to change the content to _content while retrieving the
document. So here my question is like is there way to re index the
Elasticsearch data so that older records can also be returned using _content
instead of content (any way like changing some conf or doing re indexing or
something else)
Yes , I am making a change content to _content as an index request.
Here my worry is like our application is already deployed , so with new changes being done I will not be able to fetch the older records using the same application as older records will be returned with "content" (in source) and new records will be returned with "_content".
So what could be the best way to handle this using elasticsearch.
If you look into _source.file.content and _source.file._content, older docs will have BASE64 content in content and null in _content and the opposite for newer docs.
Yes , I am making a change content to _content as an index request.
Here my worry is like our application is already deployed , so with new
changes being done I will not be able to fetch the older records using the
same application as older records will be returned with "content" (in
source) and new records will be returned with "_content".
So what could be the best way to handle this using elasticsearch.
Yes, Though that can be handled as an exception in our application.
But I was just looking for as if any thing is there in ES which can re index old document in parallel, and make the content present in older records under "_content" only instead of "content".
Yes, Though that can be handled as an exception in our application.
But I was just looking for as if any thing is there in ES which can re index
old document in parallel, and make the content present in older records
under "_content" only instead of "content".
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.