2
votes

I am using spring data elasticsearch, the version extends the spring boot parent module ie 2.0.2 release, and I have imported the class as this

import static org.elasticsearch.index.query.QueryBuilders.*;

but when I use the boolFilter(),then got this error :

cannot resolve the method boolFilter()

How can I fix it?

1
I got the same problem, have any solution?Marco
@jzonz did you find a solution ?Teddy Kossoko

1 Answers

1
votes

I do not see boolFilter() in QueryBuilders, use boolQuery() instead.