Refresh controls when changes will be searchable.
https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-refresh.html
Refresh primary and replica shards immediately after the operation.
Refresh will be done asynchronously when the index.refresh_interval time comes. It is the default behaviour.
index.refresh_interval
Wait when changes are made visible to search queries.
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.