How to get facets without facet filter aplied

Hi,

how do I select facets without aplied selected "facet filter"?
Original query https://gist.github.com/9bd1e1bc4bf289a576cc query with
aplied "facet filter" https://gist.github.com/a1eeda6e47f8e972e5df.

Diff with this two queries is add must term for user (from facets).
Hits is OK but I need same data in facets as first query. How to do it?

I think that you have to send two different request to ES.

HTH
David :wink:
@dadoonet

Le 10 déc. 2011 à 06:16, Patrik Votoček patrik@votocek.cz a écrit :

Hi,

how do I select facets without aplied selected "facet filter"?
Original query https://gist.github.com/9bd1e1bc4bf289a576cc query with
aplied "facet filter" https://gist.github.com/a1eeda6e47f8e972e5df.

Diff with this two queries is add must term for user (from facets).
Hits is OK but I need same data in facets as first query. How to do it?

I think that you have to send two different request to ES.

No, I think its possible to avoid binding the facet to the query. You
can change the scope of the facet via

"global" : true

Also this search only filter could be of some use:

Peter.

On 10 Dez., 08:42, David Pilato da...@pilato.fr wrote:

I think that you have to send two different request to ES.

HTH
David :wink:
@dadoonet

Le 10 déc. 2011 à 06:16, Patrik Votoček pat...@votocek.cz a écrit :

Hi,

how do I select facets without aplied selected "facet filter"?
Original queryhttps://gist.github.com/9bd1e1bc4bf289a576ccquery with
aplied "facet filter"https://gist.github.com/a1eeda6e47f8e972e5df.

Diff with this two queries is add must term for user (from facets).
Hits is OK but I need same data in facets as first query. How to do it?

That means that I have to learn more and more about ES !

David :wink:
@dadoonet

Le 10 déc. 2011 à 18:59, Karussell tableyourtime@googlemail.com a écrit :

I think that you have to send two different request to ES.

No, I think its possible to avoid binding the facet to the query. You
can change the scope of the facet via

"global" : true

Elasticsearch Platform — Find real-time answers at scale | Elastic

Also this search only filter could be of some use:

Search: Allow to pass a search filter, applying only on the query (and not on facets for example) · Issue #650 · elastic/elasticsearch · GitHub

Peter.

On 10 Dez., 08:42, David Pilato da...@pilato.fr wrote:

I think that you have to send two different request to ES.

HTH
David :wink:
@dadoonet

Le 10 déc. 2011 à 06:16, Patrik Votoček pat...@votocek.cz a écrit :

Hi,

how do I select facets without aplied selected "facet filter"?
Original queryhttps://gist.github.com/9bd1e1bc4bf289a576ccquery with
aplied "facet filter"https://gist.github.com/a1eeda6e47f8e972e5df.

Diff with this two queries is add must term for user (from facets).
Hits is OK but I need same data in facets as first query. How to do it?