# Where did ParseField and XContentParser go?

**URL:** <https://discuss.elastic.co/t/where-did-parsefield-and-xcontentparser-go/300348>\
**Category:** Elasticsearch\
**Created:** [March 22, 2022, 1:37pm UTC](https://discuss.elastic.co/t/where-did-parsefield-and-xcontentparser-go/300348 "2022-03-22T13:37:38Z")\
**Posts on this page:** 3\
**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 22, 2022, 1:37pm UTC](https://discuss.elastic.co/t/where-did-parsefield-and-xcontentparser-go/300348/1 "2022-03-22T13:37:39Z")

</div>

I'm trying to change an ES plugin that worked with ES v7.3.0 to work with ES v7.16.3, but it seems like `common.ParseField` was removed in ES v7.14.0 and `common.xcontent.XContentBuilder` & `common.xcontent.XContentParser` were removed in ES v7.16.0

I'm not sure where to start in refactoring [my code's usages of ParseField and xcontent](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:** ![brian8371](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@brian8371](https://discuss.elastic.co/u/brian8371)\
**Post date:** [March 23, 2022, 3:05pm UTC](https://discuss.elastic.co/t/where-did-parsefield-and-xcontentparser-go/300348/2 "2022-03-23T15:05:13Z")

</div>

Solution is they were both moved out of `org.elasticsearch.common.xcontent` to `org.elasticsearch.xcontent` through [Move ParseField to o.e.c.xcontent (#73923) by rjernst · Pull Request #73929 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/pull/73929/commits/0eaa06e02aa7b0a5a321a8dda6faf0f7e4c79307) and [https://github.com/elastic/elasticsearch/pull/79061/commits/66689ab0b5b790cb8a8d91664a1bb2f4c7a54cc7](https://github.com/elastic/elasticsearch/pull/79061/commits/66689ab0b5b790cb8a8d91664a1bb2f4c7a54cc7)

---

<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 20, 2022, 3:05pm UTC](https://discuss.elastic.co/t/where-did-parsefield-and-xcontentparser-go/300348/3 "2022-04-20T15:05:18Z")

</div>

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