# Automatic facet while querying

**URL:** https://discuss.elastic.co/t/automatic-facet-while-querying/9793
**Category:** Elasticsearch
**Created:** [November 22, 2012, 2:47pm UTC](https://discuss.elastic.co/t/automatic-facet-while-querying/9793 "2012-11-22T14:47:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Tchinkatchuk](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@Tchinkatchuk](https://discuss.elastic.co/u/Tchinkatchuk)
#### Post date: [November 22, 2012, 2:47pm UTC](https://discuss.elastic.co/t/automatic-facet-while-querying/9793/1 "2012-11-22T14:47:52Z")

</div>

Hi all,

I was wondering if there was a way to get facets automatically while  
querying.  
I explain.  
I do request on the search index and ask for facets at the same time.  
But I would like ES to propose facets without asking for specific ones.

Is it possible ?

Thanks.

Sylvain

--

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [November 22, 2012, 5:17pm UTC](https://discuss.elastic.co/t/automatic-facet-while-querying/9793/2 "2012-11-22T17:17:30Z")

</div>

Hi Sylvain,

Are you the one I met yesterday evening during my Elasticsearch talk?

What kind of facet (Term, Stat, Histo...)?  
On which field?  
How can Elasticsearch guess what you want to achieve?

Can you elaborate a bit more your use case?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 22 nov. 2012 à 15:47, "Georges@Bibtol" [sg@quable.fr](mailto:sg@quable.fr) a écrit :

> Hi all,
> 
> I was wondering if there was a way to get facets automatically while querying.  
> I explain.  
> I do request on the search index and ask for facets at the same time.  
> But I would like ES to propose facets without asking for specific ones.
> 
> Is it possible ?
> 
> Thanks.
> 
> ## Sylvain

--

---

<div class="post-metadata">

### Author: ![Tchinkatchuk](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@Tchinkatchuk](https://discuss.elastic.co/u/Tchinkatchuk)
#### Post date: [November 26, 2012, 10:20am UTC](https://discuss.elastic.co/t/automatic-facet-while-querying/9793/3 "2012-11-26T10:20:44Z")

</div>

Hi David,

I am not the Guy you met last week. Perhaps another time cause I think  
you're a french No Sql Elastic fan 🙂

I use the term research.  
I use ES to index medias file (xmp attribute and other stuff). So each item  
in the index has lots of medias but for a single search but only a few  
attributes (on hundreds) are relevant for facetting and I could not know  
before having the results which facets to display.  
So I was wondering if ES was able to choose those facets for me according  
to search results.

I do not know if my explanation is better !

Sylvain.

Le jeudi 22 novembre 2012 18:23:23 UTC+1, David Pilato a écrit :

> Hi Sylvain,
> 
> Are you the one I met yesterday evening during my Elasticsearch talk?
> 
> What kind of facet (Term, Stat, Histo...)?  
> On which field?  
> How can Elasticsearch guess what you want to achieve?
> 
> Can you elaborate a bit more your use case?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 22 nov. 2012 à 15:47, "Georges@Bibtol" \<[s...@quable.fr](mailto:s...@quable.fr) \<javascript:\>\>  
> a écrit :
> 
> Hi all,
> 
> I was wondering if there was a way to get facets automatically while  
> querying.  
> I explain.  
> I do request on the search index and ask for facets at the same time.  
> But I would like ES to propose facets without asking for specific ones.
> 
> Is it possible ?
> 
> Thanks.
> 
> Sylvain
> 
> --

--

---

<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, 3:02am UTC](https://discuss.elastic.co/t/automatic-facet-while-querying/9793/4 "2017-07-06T03:02:58Z")

</div>


