elasticsearch provides a full Java query DSL in a similar manner to the
REST Query DSL. The factory for filter
Once your query is ready, you can use the Search API.
See also how to build Queries.
FilterBuilders just import them in your class:
import static org.elasticsearch.index.query.QueryBuilders.*; import static org.elasticsearch.index.query.FilterBuilders.*;
Note that you can easily print (aka debug) JSON generated queries using
toString() method on