# Facet Filter used by Kibana

**URL:** <https://discuss.elastic.co/t/facet-filter-used-by-kibana/15893>\
**Category:** Elasticsearch\
**Created:** [February 19, 2014, 11:40am UTC](https://discuss.elastic.co/t/facet-filter-used-by-kibana/15893 "2014-02-19T11:40:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Telvis\_Calhoun\_Jr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/telvis_calhoun_jr/32/1792_2.png) [@Telvis\_Calhoun\_Jr](https://discuss.elastic.co/u/Telvis_Calhoun_Jr)\
**Post date:** [February 19, 2014, 11:40am UTC](https://discuss.elastic.co/t/facet-filter-used-by-kibana/15893/1 "2014-02-19T11:40:00Z")

</div>

[https://gist.github.com/telvis07/9090254](https://gist.github.com/telvis07/9090254) - Is a query sent by kibana when I  
typed a search entry. It uses a fquery as the facet\_filter.  
[https://gist.github.com/telvis07/9090254](https://gist.github.com/telvis07/9090254) - This a query I'm using in my app  
that uses a QueryFilter as the facet\_filter.

What is the advantage of using an fquery as a facet\_filter in the way that  
Kibana does with a BoolFilter and BoolQuery? Does it perform better than my  
query that uses a FilteredQuery as the facet\_filter?

Thanks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d11ac49e-fbf6-4b03-b7b9-24a034a853e3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d11ac49e-fbf6-4b03-b7b9-24a034a853e3%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Telvis\_Calhoun\_Jr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/telvis_calhoun_jr/32/1792_2.png) [@Telvis\_Calhoun\_Jr](https://discuss.elastic.co/u/Telvis_Calhoun_Jr)\
**Post date:** [February 19, 2014, 11:45am UTC](https://discuss.elastic.co/t/facet-filter-used-by-kibana/15893/2 "2014-02-19T11:45:33Z")

</div>

Sorry. fixed the links.

[kibana-filtered-query.json · GitHub](https://gist.github.com/telvis07/9090254#file-kibana-filtered-query-json) -  
Is a query sent by kibana when I typed a search entry. It uses a fquery as  
the facet\_filter.  
[kibana-filtered-query.json · GitHub](https://gist.github.com/telvis07/9090254#file-my-query-json) - This a query  
I'm using in my app that uses a QueryFilter as the facet\_filter.

On Wednesday, February 19, 2014 6:40:00 AM UTC-5, Telvis Calhoun Jr. wrote:

> [kibana-filtered-query.json · GitHub](https://gist.github.com/telvis07/9090254) - Is a query sent by kibana when  
> I typed a search entry. It uses a fquery as the facet\_filter.  
> [kibana-filtered-query.json · GitHub](https://gist.github.com/telvis07/9090254) - This a query I'm using in my  
> app that uses a QueryFilter as the facet\_filter.
> 
> What is the advantage of using an fquery as a facet\_filter in the way that  
> Kibana does with a BoolFilter and BoolQuery? Does it perform better than my  
> query that uses a FilteredQuery as the facet\_filter?
> 
> Thanks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d42b28da-f8dc-48de-a4bb-dd6e27f6c493%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d42b28da-f8dc-48de-a4bb-dd6e27f6c493%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Binh\_Ly](https://discuss.elastic.co/u/Binh_Ly)\
**Post date:** [February 19, 2014, 2:33pm UTC](https://discuss.elastic.co/t/facet-filter-used-by-kibana/15893/3 "2014-02-19T14:33:23Z")

</div>

The fquery is just a syntactic extension of the query filter in case you  
need to define extra parameters (fquery and query filters are the same  
execution-wise). See details here:

[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-query-filter.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-query-filter.html)

The difference between a standard query and a filtered query is that the  
filtered query allows you to define a filter which can likely be faster to  
execute than just a standard query.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/984731fa-8d3f-438c-817b-922581bb9550%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/984731fa-8d3f-438c-817b-922581bb9550%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 1:49am UTC](https://discuss.elastic.co/t/facet-filter-used-by-kibana/15893/4 "2017-07-06T01:49:03Z")

</div>


