Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XFilteredQuery default strategy prefers query first in the deleted docs ... #6254

Merged
merged 1 commit into from May 21, 2014

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented May 21, 2014

...case

Today we check if the DocIdSet we filter by is fast but the check fails
if the DocIdSet if wrapped in an ApplyAcceptedDocsFilter which is always
the case if the index has deleted documents. This commit unwraps
the original DocIdSet in the case of deleted documents.

Closes #6247

@@ -65,6 +66,15 @@ public String toString() {
return filter.toString();
}

public static DocIdSet unwarp(DocIdSet docIdSet) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo ;) s/unwarp/unwrap

@s1monw
Copy link
Contributor Author

s1monw commented May 21, 2014

pushed a cleanup commit

@kimchy
Copy link
Member

kimchy commented May 21, 2014

LGTM

@jpountz
Copy link
Contributor

jpountz commented May 21, 2014

+1
progress over perfection

…cs case

Today we check if the DocIdSet we filter by is `fast` but the check fails
if the DocIdSet if wrapped in an `ApplyAcceptedDocsFilter` which is always
the case if the index has deleted documents. This commit unwraps
the original DocIdSet in the case of deleted documents.

Closes elastic#6247
@s1monw s1monw merged commit f29744c into elastic:master May 21, 2014
@clintongormley clintongormley added >bug v2.0.0-beta1 v1.2.0 :Search/Search Search-related issues that do not fall into other categories labels Jun 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search/Search Search-related issues that do not fall into other categories v1.2.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XFilteredQuery defaults to Query First strategy
5 participants