# Plugin unable to find classes in ES 7.12 and newer

**URL:** <https://discuss.elastic.co/t/plugin-unable-to-find-classes-in-es-7-12-and-newer/299890>\
**Category:** Elasticsearch\
**Created:** [March 16, 2022, 6:33pm UTC](https://discuss.elastic.co/t/plugin-unable-to-find-classes-in-es-7-12-and-newer/299890 "2022-03-16T18:33:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian8371](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@brian8371](https://discuss.elastic.co/u/brian8371)\
**Post date:** [March 16, 2022, 6:33pm UTC](https://discuss.elastic.co/t/plugin-unable-to-find-classes-in-es-7-12-and-newer/299890/1 "2022-03-16T18:33:12Z")

</div>

I'm new to ES plugin development and I'm trying to change an ES plugin that worked with ES v7.3.0 to work with ES v7.13.4 or newer, but it seems like both `index.query.QueryShardContext` and `index.search.MatchQuery` were removed in ES v7.12.0

I see some usages of those classes in [the deprecated section of the v7.11.2 javadocs](https://artifacts.elastic.co/javadoc/org/elasticsearch/elasticsearch/7.11.2/deprecated-list.html), but it doesn't seem like the whole classes would be removed which confuses me. I'm not sure where to start in refactoring [my code's usages of QueryShardContext and MatchQuery](https://github.com/messiaen/full-lattice-search/blob/43d789682c7a0a24ee53ab39471c5482639db433/src/main/java/com/eigendomain/eslatticeindex/index/query/MatchLatticeQueryBuilder.java). Are there recommended classes to migrate to using or any documentation that would point me how to handle this?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [March 17, 2022, 9:46am UTC](https://discuss.elastic.co/t/plugin-unable-to-find-classes-in-es-7-12-and-newer/299890/2 "2022-03-17T09:46:35Z")

</div>

See [Rename QueryShardContext -\> SearchExecutionContext. by jtibshirani · Pull Request #67544 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/pull/67544)

Regarding the match query, there are now builder classes which contain the zero terms query?

---

<div class="post-metadata">

**Author:** ![brian8371](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@brian8371](https://discuss.elastic.co/u/brian8371)\
**Post date:** [March 22, 2022, 1:41pm UTC](https://discuss.elastic.co/t/plugin-unable-to-find-classes-in-es-7-12-and-newer/299890/3 "2022-03-22T13:41:31Z")

</div>

Thank you so much! That was exactly the advice I needed and solved my issues so I've marked it as the solution. However, I bumped into a similar issue while trying to update ES further so [I opened a new thread](https://discuss.elastic.co/t/where-did-parsefield-and-xcontentparser-go/300348), I would appreciate if you would speak to that as well.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 19, 2022, 1:41pm UTC](https://discuss.elastic.co/t/plugin-unable-to-find-classes-in-es-7-12-and-newer/299890/4 "2022-04-19T13:41:36Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
