refresh_interval does not control insertions doc by doc, it works on index
level, telling a shard it has to switch from written buffer to a readable
(searchable) index, which can be a heavy operation related to hundreds and
thousands of words in your documents.
You can index into two different
We've had some success improving bulk insertion times using a higher value
for refresh_interval when doing bulk inserts.
However, the global nature of this setting seems to cause some problems.
We want some insertions processed with a higher value and others processed
immediately (under the