Reading from an alias which has two indexes

Hi,
If i have two indexes under an alias say "Old Index" and "New Index". the
old index contains a doc identified by #doc1, version 1 and the i start
populating "new index" (and stop writing to old index). I then index a
updated version of #doc 1 to "New Index". Now "New Index" contains #doc1,
version 2.

Now, when i issue a read query to the alias (which ahs Old & New Index
under it), which version of the doc would it return, #doc 1, version 2?

Thanks for your prompt response.

Kumar Subramanian.

--
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/a2fecda7-2345-4a92-a94d-a68982bf4bd7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

It'd probably return both, depends on what your query is.

On 31 March 2015 at 04:49, Kumar S krskumar108@gmail.com wrote:

Hi,
If i have two indexes under an alias say "Old Index" and "New Index". the
old index contains a doc identified by #doc1, version 1 and the i start
populating "new index" (and stop writing to old index). I then index a
updated version of #doc 1 to "New Index". Now "New Index" contains #doc1,
version 2.

Now, when i issue a read query to the alias (which ahs Old & New Index
under it), which version of the doc would it return, #doc 1, version 2?

Thanks for your prompt response.

Kumar Subramanian.

--
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/a2fecda7-2345-4a92-a94d-a68982bf4bd7%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/a2fecda7-2345-4a92-a94d-a68982bf4bd7%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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/CAEYi1X8OO-zV0G6nw%2BXf%2Bd171CYf2pwWF4oUow%2BFrjYta_5HMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.