# Facet Queries in count API and multiPropertyQueryString

**URL:** <https://discuss.elastic.co/t/facet-queries-in-count-api-and-multipropertyquerystring/2967>\
**Category:** Elasticsearch\
**Created:** [May 24, 2010, 12:36am UTC](https://discuss.elastic.co/t/facet-queries-in-count-api-and-multipropertyquerystring/2967 "2010-05-24T00:36:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tfreitas](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tfreitas](https://discuss.elastic.co/u/tfreitas)\
**Post date:** [May 24, 2010, 12:36am UTC](https://discuss.elastic.co/t/facet-queries-in-count-api-and-multipropertyquerystring/2967/1 "2010-05-24T00:36:53Z")

</div>

Hi shay

1. 

In compass, there QueryBuilder.multiPropertyQueryString class  
In ES, is there something similar?

1. 

In "count API" could have Facet Queries ?

cheers  
Tony

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [May 24, 2010, 4:37am UTC](https://discuss.elastic.co/t/facet-queries-in-count-api-and-multipropertyquerystring/2967/2 "2010-05-24T04:37:26Z")

</div>

On Mon, May 24, 2010 at 3:36 AM, tfreitas [tfreitas@gmail.com](mailto:tfreitas@gmail.com) wrote:

> Hi shay
> 
> 1. 
> 
> In compass, there QueryBuilder.multiPropertyQueryString class  
> In ES, is there something similar?

Yes, there is something more advance. There is the QueryBuilders#disMaxQuery  
which allows for several sub queries.

> 1. 
> 
> In "count API" could have Facet Queries ?

Can be done, open an issue for it?

> cheers  
> Tony

---

<div class="post-metadata">

**Author:** ![tfreitas](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tfreitas](https://discuss.elastic.co/u/tfreitas)\
**Post date:** [May 24, 2010, 1:02pm UTC](https://discuss.elastic.co/t/facet-queries-in-count-api-and-multipropertyquerystring/2967/3 "2010-05-24T13:02:07Z")

</div>

done

> **[Issues · elastic/elasticsearch](https://github.com/elastic/elasticsearch/issues#issue/190)**
>
> Free and Open, Distributed, RESTful Search Engine. Contribute to elastic/elasticsearch development by creating an account on GitHub.

On May 24, 12:37 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> On Mon, May 24, 2010 at 3:36 AM, tfreitas [tfrei...@gmail.com](mailto:tfrei...@gmail.com) wrote:
> 
> > Hi shay
> 
> > 1. 
> > 
> > In compass, there QueryBuilder.multiPropertyQueryString class  
> > In ES, is there something similar?
> 
> Yes, there is something more advance. There is the QueryBuilders#disMaxQuery  
> which allows for several sub queries.
> 
> > 1. 
> > 
> > In "count API" could have Facet Queries ?
> 
> Can be done, open an issue for it?
> 
> > cheers  
> > Tony

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [May 24, 2010, 3:57pm UTC](https://discuss.elastic.co/t/facet-queries-in-count-api-and-multipropertyquerystring/2967/4 "2010-05-24T15:57:05Z")

</div>

cool. I don't think I will manage to work on this for the next version, but  
its on my TODO list. You can always use search with low size for now (or  
even zero, should work, but actually, did not test for it 🙂 ).

cheers,  
shay.banon

On Mon, May 24, 2010 at 4:02 PM, tfreitas [tfreitas@gmail.com](mailto:tfreitas@gmail.com) wrote:

> done
> 
> [Issues · elastic/elasticsearch · GitHub](http://github.com/elasticsearch/elasticsearch/issues/#issue/190)
> 
> On May 24, 12:37 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > On Mon, May 24, 2010 at 3:36 AM, tfreitas [tfrei...@gmail.com](mailto:tfrei...@gmail.com) wrote:
> > 
> > > Hi shay
> > 
> > > 1. 
> > > 
> > > In compass, there QueryBuilder.multiPropertyQueryString class  
> > > In ES, is there something similar?
> > 
> > Yes, there is something more advance. There is the  
> > QueryBuilders#disMaxQuery  
> > which allows for several sub queries.
> > 
> > > 1. 
> > > 
> > > In "count API" could have Facet Queries ?
> > 
> > Can be done, open an issue for it?
> > 
> > > cheers  
> > > Tony

---

<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:** [July 6, 2017, 4:23am UTC](https://discuss.elastic.co/t/facet-queries-in-count-api-and-multipropertyquerystring/2967/5 "2017-07-06T04:23:54Z")

</div>

Closed on July 6, 2017, 4:23am UTC


