Unable to use Tagging and excluding Filters

让人想犯罪 __ 提交于 2019-12-05 06:47:26

问题


I have 2 Facets color and shape.

Color: Red Green yellow

Shape: Circle Square

Now I want to use Tagging and excluding Filters for both these Facet. So if I select "Red" the green and yellow should be present in facet list and all shapes as well

I read: http://wiki.apache.org/solr/SimpleFacetParameters#Tagging_and_excluding_Filters

But unable to implement it in my setup.


回答1:


This worked fine for me.

select?q={!tag=dt1}color:red&fq={!tag=dt2}shape:*&facet=true&facet.field={!ex=dt1}color&facet.field={!ex=dt2}shape




回答2:


Try

http://localhost:8983/solr/collection1/select?q={!tag=dt1}color:red&fq={!tag=dt2}shape:*&facet=true&facet.field={!ex=dt1}color&facet.field={!ex=dt2}shape



来源:https://stackoverflow.com/questions/14954520/unable-to-use-tagging-and-excluding-filters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!