Can restore process go through preprocessors?

Hi, here is my use case :
I'd like to let a date preprocessor rename indices while they are restored, based on a timestamp field in documents.

You can change the index name using script processor, but I am not quite sure what you mean by "date preprocessor" and what phrase "while they are restored" means in this context, so this might be not what you are actually looking for. If this is the case, could you clarify your question?

I'd like to use this processor https://www.elastic.co/guide/en/elasticsearch/reference/master/date-index-name-processor.html during restore process, I mean during snapshot backup and restore process (https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html).

You cannot use any processors during restore process, because restore process doesn't reindex your data. It just copies files from repository to the data directory on the nodes. During the restore (until the index is open) we are not even trying to look at the content of these files (except calculating checksums), so there is no way to lookup timestamps from these document or do any operations based on the content of the documents, or split documents from one index into multiple indices.

Ok thanks for your answer

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.