Skip to content

Commit

Permalink
Update query to filter out any in an array with not equals
Browse files Browse the repository at this point in the history
  • Loading branch information
joeaxcdw authored and achapm committed Dec 3, 2024
1 parent 5daf63a commit 032f13f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ public static BoolQuery equalTo(final String path, final String name, final Str

public static BoolQuery notEquals(final String path, final String name, final String value) {
return BoolQuery.of(
bool -> bool.should(
should -> should.nested(
bool -> bool.mustNot(
mustNot -> mustNot.nested(
nested -> nested.path(path)
.query(
query -> query.bool(
field -> field.mustNot(
mustNot -> mustNot.match(
field -> field.must(
must -> must.match(
match -> match
.field(name)
.query(value)
Expand Down

0 comments on commit 032f13f

Please sign in to comment.