Latency "required" before query of new data?


#1

I am performing an insert into elasticsearch using a promise to confirm it is complete, before I query the same index. I have had to set a timeout to allow elasticsearch to "catch up" or the query returns zero results. This is on a local development environment, so it is not like I am dealing with network latency or something related. Any ideas would be much appreciated.


(Mark Walkom) #2

Have a look at https://www.elastic.co/guide/en/elasticsearch/guide/2.x/near-real-time.html


(system) #3