Refresh parameter in reindex api

Hi,

I want to understand what 'refresh' parameter do in reindex api, how it helps while reindexing huge index. Can you please clarify using examples how it is different from the 'refresh' used in Bulk Indexing. Following is the one where refresh is used in Bulk indexing:

PUT /twitter/_settings
{
"index" : {
"refresh_interval" : "-1"
}
}

thank you

Hey,

please format your messages when using code snippets. You can use markdown in here and it will greatly improve the ability to read your snippet - which will increase your changes of getting an answer.

The refresh parameter in the reindex API will ensure that every index your are reindexing into will be refreshed at the end of the reindex operation. See https://www.elastic.co/guide/en/elasticsearch/reference/7.2/indices-refresh.html

This is similar when using refresh in the bulk API.

Your code snippet however contains the refresh interval, which is a different thing, as it configures how often a refresh should be executed in the background while new documents are indexed.

--Alex

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