Creating a NOT EQUAL filter in Java Fluent API

De acordo com a documentação vc já esta usando o filtro.

must_not The clause (query) must not appear in the matching documents. Clauses are executed in filter context meaning that scoring is ignored and clauses are considered for caching. Because scoring is ignored, a score of 0 for all documents is returned.

1 Like