Jordi
Jordi

Reputation: 23277

ElasticSearch indexed document not returned immediately

I'm using ES as backend. So, my architecture is based on a client-server.

Very often, maybe too much, I'm realizing when I perform two operations from client: index and search almost one after the other, the document indexed is not returned by ES.

When I refresh the result, the last indexed document is obtained from server.

Should I take something in mind in order to avoid this behavior?

Is this behavior something usual?

Upvotes: 2

Views: 185

Answers (1)

Victor Buldakov
Victor Buldakov

Reputation: 125

Yes, it is usual behaviour. ElasticSearch refreshes shard every 1 second. ElasticSearch could work really slow if you refresh it after every index.

Upvotes: 3

Related Questions