You have two options. The first is to use a queryString or field queries
and provide the query you provided. It will be parsed into the proper Lucene
Query structure. Another optino is to use what Lukas suggested and build
that query yourself using the boolQuery option (which maps to Lucene
BooleanQuery). All the queries are listed in the query_dsl page ( http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/), and
you can find all of them in the QueryBuilders and FilterBuilders factories.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.