Real time indexes


(ofer lilian) #1

does elasticsearch support real time indexes ?


(Magnus Bäck) #2

Could you explain what you mean? "Real time" means different things in different contexts and to different people.


(Nik Everett) #3

Updates usually hit the index in around a second if that is what you are looking for.


(ofer lilian) #4

Yes, this is what i was looking for,
is there a way using the api to index and get back response only after the index updated ?


(Nik Everett) #5

No but there is a way to force a refresh - which is ok for very low traffic indexes. Here is the discussion around blocking a request until something is visible:


(ofer lilian) #6

Thank you ,
is this apply also for in memory index ?


(Magnus Bäck) #7

I'm not sure what you mean, but all query operations are only current as of the most recent refresh. Changes that have taken place after the refresh are effectively not visible when querying. However, getting a document by id guarantees a consistent result.


(system) #8