Force refresh after each operation, for unit tests

Hi everybody !

In my unit tests I have a lot of sleep that waits for the refresh interval
(1s);
I would like to speed up my tests. Executing them in parrallel is not an
option.

Is there a way to force ElasticSearch to refresh after each operation, in
the elasticsearch.yml configuration file ?

Thanks

Romain

--

hey,

can't you forcefully refresh manually via the refresh
API? Elasticsearch Platform — Find real-time answers at scale | Elastic

simon

On Monday, October 22, 2012 6:24:15 PM UTC+2, Filirom1 wrote:

Hi everybody !

In my unit tests I have a lot of sleep that waits for the refresh interval
(1s);
I would like to speed up my tests. Executing them in parrallel is not an
option.

Is there a way to force Elasticsearch to refresh after each operation, in
the elasticsearch.yml configuration file ?

Thanks

Romain

--

Indeed.

I replace every sleep by a call to the refresh API.

Thanks
Romain

2012/10/22 simonw simon.willnauer@elasticsearch.com

hey,

can't you forcefully refresh manually via the refresh API?
Elasticsearch Platform — Find real-time answers at scale | Elastic

simon

On Monday, October 22, 2012 6:24:15 PM UTC+2, Filirom1 wrote:

Hi everybody !

In my unit tests I have a lot of sleep that waits for the refresh
interval (1s);
I would like to speed up my tests. Executing them in parrallel is not an
option.

Is there a way to force Elasticsearch to refresh after each operation,
in the elasticsearch.yml configuration file ?

Thanks

Romain

--

--