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

Search dv only IP masks #16628

Merged
merged 13 commits into from
Nov 15, 2024
Prev Previous commit
Next Next commit
spotless apply
Signed-off-by: mikhail-khludnev <[email protected]>
mkhludnev committed Nov 14, 2024
commit a859408944681226a1c1c04af559bfe7ff97b902
Original file line number Diff line number Diff line change
@@ -257,15 +257,15 @@ public Query termQuery(Object value, @Nullable QueryShardContext context) {

private Query indexOrDvQuery(Query pointQuery, Query dvQuery) {
if (isSearchable() && hasDocValues()) {
assert pointQuery!=null;
assert dvQuery!=null;
assert pointQuery != null;
assert dvQuery != null;
return new IndexOrDocValuesQuery(pointQuery, dvQuery);
} else {
if (isSearchable()) {
assert pointQuery!=null;
assert pointQuery != null;
return pointQuery;
} else {
assert dvQuery!=null;
assert dvQuery != null;
return dvQuery;
}
}