does elasticsearch support real time indexes ?
Could you explain what you mean? "Real time" means different things in different contexts and to different people.
Updates usually hit the index in around a second if that is what you are looking for.
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 ?
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:
Thank you ,
is this apply also for in memory index ?
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.