无法使用标记并排除过滤器 [英] Unable to use Tagging and excluding Filters

查看:183
本文介绍了无法使用标记并排除过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个Facets颜色和形状。

颜色:
红色
绿色
黄色

形状:
Circle
Square



现在我想使用标记并排除这两个Facet的过滤器。
所以如果我选择红色,那么绿色和黄色应该出现在方面列表和所有形状中。我读到:
http://wiki.apache.org/solr/SimpleFacetParameters#Tagging_and_excluding_Filters



但无法在我的设置中实现它。

解决方案

/ p>

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

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.

解决方案

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

这篇关于无法使用标记并排除过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆