You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Umang Agrawal <um...@gmail.com> on 2015/02/02 19:35:44 UTC

How to exclude selected filter (facet) from search result?

Hi

Could you please suggest how to exclude selected filter from solr search
result.

For example in below screenshot, I have selected filter "camera" but still
camera (1) is returned in search response. How can I request solr to remove
selected filter from search result?

Thanks in advance.


[image: Inline image 1]


-- 
Thanx & Regards
Umang Agrawal

Re: How to exclude selected filter (facet) from search result?

Posted by Michael Sokolov <ms...@safaribooksonline.com>.
Have a look here: 
https://wiki.apache.org/solr/SimpleFacetParameters#Multi-Select_Faceting_and_LocalParams; 
it might answer your question.  Typically what I recommend is to keep 
the selected facet in view, but without any limitation on its counts.  
However if you want to hide it altogether, I think you might need to do 
that in the front end?

-Mike

On 2/2/2015 1:35 PM, Umang Agrawal wrote:
> Hi
>
> Could you please suggest how to exclude selected filter from solr 
> search result.
>
> For example in below screenshot, I have selected filter "camera" but 
> still camera (1) is returned in search response. How can I request 
> solr to remove selected filter from search result?
>
> Thanks in advance.
>
>
> Inline image 1
>
>
> -- 
> Thanx & Regards
> Umang Agrawal


Re: How to exclude selected filter (facet) from search result?

Posted by Mike Drob <ma...@cloudera.com>.
Umang,

I believe this mailing list strips images. You might have better luck
uploading your image to a 3rd party hosting site and providing a link.

Thanks,
Mike

On Mon, Feb 2, 2015 at 12:35 PM, Umang Agrawal <um...@gmail.com> wrote:

> Hi
>
> Could you please suggest how to exclude selected filter from solr search
> result.
>
> For example in below screenshot, I have selected filter "camera" but still
> camera (1) is returned in search response. How can I request solr to remove
> selected filter from search result?
>
> Thanks in advance.
>
>
> [image: Inline image 1]
>
>
> --
> Thanx & Regards
> Umang Agrawal
>