# ElasticSearch 6.0 Beta2 - Perq Queries

**URL:** <https://discuss.elastic.co/t/elasticsearch-6-0-beta2-perq-queries/99200>\
**Category:** Elasticsearch\
**Created:** [September 2, 2017, 9:14pm UTC](https://discuss.elastic.co/t/elasticsearch-6-0-beta2-perq-queries/99200 "2017-09-02T21:14:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![questar](https://avatars.discourse-cdn.com/v4/letter/q/9fc29f/32.png) [@questar](https://discuss.elastic.co/u/questar)\
**Post date:** [September 2, 2017, 9:14pm UTC](https://discuss.elastic.co/t/elasticsearch-6-0-beta2-perq-queries/99200/1 "2017-09-02T21:14:35Z")

</div>

Have been struggling with the Perq Query upgrade to 6.0 (although I like the approach) outlined in [https://www.elastic.co/guide/en/elasticsearch/reference/6.0/query-dsl-percolate-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/query-dsl-percolate-query.html)

I understand the PercolateQueryBuilder is deprecated, as this approach is flagged as such:  
PercolateQueryBuilder percolateQuery = new PercolateQueryBuilder("query", "typeName", b.bytes());

In reviewing the source at:

> <https://github.com/elastic/elasticsearch/blob/master/modules/percolator/src/main/java/org/elasticsearch/percolator/PercolateQueryBuilder.java>

I noticed that the version of the builder without the deprecated 'type' is not deprecated.  
public PercolateQueryBuilder(String field, BytesReference document, XContentType documentXContentType) {  
this(field, null, document, documentXContentType);  
}  
Will this constructor have a life going forward?

Thanks

---

<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:** [September 30, 2017, 9:14pm UTC](https://discuss.elastic.co/t/elasticsearch-6-0-beta2-perq-queries/99200/2 "2017-09-30T21:14:45Z")

</div>

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