NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
QueryBuilders just import them in your class:
import static org.elasticsearch.index.query.QueryBuilders.*;
Note that you can easily print (aka debug) JSON generated queries using
toString() method on
QueryBuilder can then be used with any API that accepts a query,