SOLR拒绝带来完全匹配,怎么样?

时间:2012-06-04 21:05:03

标签: solr solr-schema

我有以下字段类型(注意没有过滤器,没有标记器)

<fieldType name="text_names" class="solr.StrField" />

我使用该类型在我的架构中创建一个字段:

<field name="exact_type" type="text_names" indexed="true" stored="true" />

现在,我搜索q=*:*&fq=exact_type:aa&fl=exact_type 我仍然会在exact_type字段中获得除“aa”以外的结果 我在这里缺少什么?

此行为也一样:

q=exact_type:aa&fl=exact_type

1 个答案:

答案 0 :(得分:-1)

我不认为&#34; q = *:*&#34;适用于DisMaxHandler并且我相信您正在使用它,两个查询的正确语法应该是:

q=&fq=exact_type:aa&fl=exact_type

fq=exact_type:aa&fl=exact_type
相关问题