Consistency of distributed operations

Hi,

can ES ensure consistency for distributed operations if the operation
consists of more phases?
For example if DFS_QUERY_THEN_FETCH search type is used what happens if some
relevant documents are deleted from index between first and second phase of
the query?

Regards,
Lukas

Hey,

Yes, elasticsearch ensures consistency of things changed between phases.
Those changes will not suddenly be reflected if they "got in" between the
phases. Low level wise, its done by maintaining the same IndexReader to use
between phases.

-shay.banon

On Tue, Oct 12, 2010 at 10:27 AM, Lukáš Vlček lukas.vlcek@gmail.com wrote:

Hi,

can ES ensure consistency for distributed operations if the operation
consists of more phases?
For example if DFS_QUERY_THEN_FETCH search type is used what happens if
some relevant documents are deleted from index between first and second
phase of the query?

Regards,
Lukas