Facets ignore a filter

Hi,

I have an issue with facets and I would like to know if I can achieve the
following thing :
I want to ignore one of my filters : the reason why I want to do that is
because I only have this filter on the first page of my search engine, it
hides some of options available.

Is it possible to do that without sending two requests ?

Thanks,

Roch

--

You can send a query with one filtered facet and with the same facet without filter.

Use two different facet name.

HTH
David

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

Le 22 août 2012 à 12:43, Roch Delsalle rdelsalle@gmail.com a écrit :

Hi,

I have an issue with facets and I would like to know if I can achieve the following thing :
I want to ignore one of my filters : the reason why I want to do that is because I only have this filter on the first page of my search engine, it hides some of options available.

Is it possible to do that without sending two requests ?

Thanks,

Roch

--

I think your problem is unclearly stated, because I can't tell if "one
of my filters" is within a filtered query, a filter on a query request
(to filter the hits, but not the filters), or a filter somewhere in the
facets themselves (David P. suggested this last one as a solution).

But knowing that you are on the 1st page is certainly a UI or
middle-tier bit of information, so I think I would have the application
ask a slightly different question thus triggering a slightly different
ES search request.

Also, did you mean "sending two" different "requests", one special
variant for page 1 and a different 1 for other pages, as I have stated
above, or are you thinking of a solution where to complete page 2 or
higher you send 2 requests?

You can ask for 2 or more facets in one search request and just use
one or other depending on whatever page your on. But then if you know
the page when your receiving, you'd know the page when your sending, so
why ask for both if you only need one or the other?

-Paul

On 8/22/2012 3:43 AM, Roch Delsalle wrote:

Hi,

I have an issue with facets and I would like to know if I can achieve
the following thing :
I want to ignore one of my filters : the reason why I want to do that
is because I only have this filter on the first page of my search
engine, it hides some of options available.

Is it possible to do that without sending two requests ?

Thanks,

Roch

--