# Match query with "operator":"and" via the Java API

**URL:** <https://discuss.elastic.co/t/match-query-with-operator-and-via-the-java-api/67863>\
**Category:** Elasticsearch\
**Created:** [December 2, 2016, 1:54pm UTC](https://discuss.elastic.co/t/match-query-with-operator-and-via-the-java-api/67863 "2016-12-02T13:54:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [December 2, 2016, 2:30pm UTC](https://discuss.elastic.co/t/match-query-with-operator-and-via-the-java-api/67863/2 "2016-12-02T14:30:27Z")

</div>

> [@jenamon](#):
>
> What am I missing?

You are two major versions behind what is released so this is all fairly historic to me. It looks like operator is inside of `MatchQueryBuilder` in that version. So something like `import org.elasticsearch.index.queryMatchQueryBuilder.Operator` is the way to go I think.

---

_[View the full topic](https://discuss.elastic.co/t/match-query-with-operator-and-via-the-java-api/67863)._
