Realtime GET #1060

kimchy opened this Issue Jun 24, 2011 · 9 comments

7 participants

elastic member

Realtime GET support allows to get a document once indexed regardless of the "refresh rate" of the index. It is enabled by default.

In order to disable realtime GET, one can either set realtime parameter to false, or globally default it to by setting the action.get.realtime to false in the node configuration.

Realtime GET and stored fields

When getting a document, one can specify fields to fetch from it. They will, when possible, be fetched as stored fields (fields mapped as stored in the mapping). When using realtime GET, there is no notion of stored fields (at least for a period of time, basically, until the next flush), so they will be extracted from the source itself (note, even if source is not enabled). It is a good practice to assume that the fields will be loaded from source when using realtime GET, even if the fields are stored.

@kimchy kimchy added a commit that closed this issue Jun 24, 2011
@kimchy kimchy Realtime GET, closes #1060. 72ee0aa
@kimchy kimchy closed this in 72ee0aa Jun 24, 2011

Dude. Awesome.


+1. I'll definitely give it a spin today
Thanks Shay.


Definitely, ES is getting more closer to CouchDB :-)

elastic member

@stephane-bastian cool, would love an early feedback on this


Kimchy this feature is fantastic, now we can use it as a better datastore.




Does this mean a fetch by id will return this "soon to be indexed" document, or will it be part of any query result which includes the document?

elastic member

When a document is indexed, its indexed, its not "soon to be indexed". When it becomes visible for search is the question (and thats the async refresh). Fetch by Id will work even if it has not been refreshed yet.


Hi Shay,
Unfortunately I got sidetracked by some higher priority tasks. Things are settling down and I hope to test the RT get feature today or tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment