Index time for new documents

I ran a stress test on a local ES DB, to see how long after adding a
document I could successfully search for it.

I noticed that in many cases, it takes about 1 second. My suspicion is
that the indexer runs about every 1 seconds, is that the case? Is there a
variable which can be set to change this if needed?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Yep, Elasticsearch runs a "refresh" once per second by default. This
refresh makes new documents searchable.

You can dynamically change how often the refresh is executed by modifying
the refresh_interval setting using the Update Settings APIhttp://www.elasticsearch.org/guide/reference/api/admin-indices-update-settings/,
and can manually call a refresh with the Refresh API.http://www.elasticsearch.org/guide/reference/api/admin-indices-refresh/

-Zach

On Wednesday, August 28, 2013 3:08:21 PM UTC-4, Phil Greenberg wrote:

I ran a stress test on a local ES DB, to see how long after adding a
document I could successfully search for it.

I noticed that in many cases, it takes about 1 second. My suspicion is
that the indexer runs about every 1 seconds, is that the case? Is there a
variable which can be set to change this if needed?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Awesome, thanks for the help!

On Wednesday, August 28, 2013 12:08:21 PM UTC-7, Phil Greenberg wrote:

I ran a stress test on a local ES DB, to see how long after adding a
document I could successfully search for it.

I noticed that in many cases, it takes about 1 second. My suspicion is
that the indexer runs about every 1 seconds, is that the case? Is there a
variable which can be set to change this if needed?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.