IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Query DSL - Filters
editQuery DSL - Filters
editelasticsearch provides a full Java query dsl in a similar manner to the
REST Query DSL. The factory for filter
builders is FilterBuilders
.
Once your query is ready, you can use the Search API.
See also how to build Queries.
To use FilterBuilders
just import them in your class:
import org.elasticsearch.index.query.FilterBuilders.*;
Note that you can easily print (aka debug) JSON generated queries using
toString()
method on FilterBuilder
object.