Searching while indexing

I am unclear on how does searching work while indexing. lets say I already
have a document indexed (version 1), and I updated the document, so I will
index it again (version 2), what happens when the user is searching while
indexing version 2? Will the user get results from version 1?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0fb1e6fe-0d96-4d35-b155-f9de87e5c1f7%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Yes.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 7 févr. 2014 à 04:41, ZenMaster80 sabdalla80@gmail.com a écrit :

I am unclear on how does searching work while indexing. lets say I already have a document indexed (version 1), and I updated the document, so I will index it again (version 2), what happens when the user is searching while indexing version 2? Will the user get results from version 1?

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0fb1e6fe-0d96-4d35-b155-f9de87e5c1f7%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3A407209-C2E5-4C8D-A7CB-B8340048CE30%40pilato.fr.
For more options, visit https://groups.google.com/groups/opt_out.

Yes, as ES is eventually consistent.

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com

On 7 February 2014 17:12, David Pilato david@pilato.fr wrote:

Yes.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 7 févr. 2014 à 04:41, ZenMaster80 sabdalla80@gmail.com a écrit :

I am unclear on how does searching work while indexing. lets say I already
have a document indexed (version 1), and I updated the document, so I will
index it again (version 2), what happens when the user is searching while
indexing version 2? Will the user get results from version 1?

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/0fb1e6fe-0d96-4d35-b155-f9de87e5c1f7%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/3A407209-C2E5-4C8D-A7CB-B8340048CE30%40pilato.fr
.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEM624b2jZJPhGrt2fs-EzV%2BieDZ8_MFkoO_V5_k_pyRtXjH5A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Well, good grief, the answer to the poster's original question is PERHAPS
(not yes!). It depends on the timing between the search request and the
(asynchronous) indexing. There is a short (but finite) amount of time after
the update request that a search will still return the previous version. At
some point in time (this is the eventually part) that window will close and
the updated, just indexed document will be returned.

Also, if the search request happened before the indexing and the client is
pulling results back using scrolling or scanning then he definitely will
not see the update, I think.

On Thu, Feb 6, 2014 at 10:18 PM, Mark Walkom markw@campaignmonitor.comwrote:

Yes, as ES is eventually consistent.

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com

On 7 February 2014 17:12, David Pilato david@pilato.fr wrote:

Yes.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 7 févr. 2014 à 04:41, ZenMaster80 sabdalla80@gmail.com a écrit :

I am unclear on how does searching work while indexing. lets say I
already have a document indexed (version 1), and I updated the document, so
I will index it again (version 2), what happens when the user is searching
while indexing version 2? Will the user get results from version 1?

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/0fb1e6fe-0d96-4d35-b155-f9de87e5c1f7%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/3A407209-C2E5-4C8D-A7CB-B8340048CE30%40pilato.fr
.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAEM624b2jZJPhGrt2fs-EzV%2BieDZ8_MFkoO_V5_k_pyRtXjH5A%40mail.gmail.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAFjHw34gVr5YPqS7t1r14n4F3p-tHFdtRngLiv-Avb7rcTLavg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.