Skip to content

Commit

Permalink
resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
achapm committed Dec 3, 2024
1 parent 032f13f commit bfaf974
Showing 1 changed file with 5 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,14 @@ public class TextCriteriaNestedQueryResolver {

public static BoolQuery equalTo(final String path, final String name, final String value) {
return BoolQuery.of(
bool -> bool.must(
bool -> bool.should(
should -> should.nested(
nested -> nested.path(path)
.query(
query -> query.bool(
field -> field.must(
must -> must.match(
match -> match
.field(name)
.query(value)
)
)
)
)
)
)
);
query -> query.term(
term -> term.field(name + ".keyword")
.value(value)
.caseInsensitive(true))))));
}

public static BoolQuery notEquals(final String path, final String name, final String value) {
Expand Down

0 comments on commit bfaf974

Please sign in to comment.