我一直在试图对配置为solr.PathHierarchyTokenizerFactory的字段执行查询,但查询只是返回所有记录。看来,做一个方面查询只是不工作。有没有人有办法完成这个?我正在使用PathHierarchy来实现类别/子类别构面。SOLR - PathHierarchyTokenizerFactory方面查询
<fieldType name="text_path" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />
</analyzer>
</fieldType>
<field name="libraries" type="text_path" indexed="true" stored="true" multiValued="true" />
而且
http://linux2:8984/solr/select?q=*:*&rows=0&fq=libraries:"/test/subtest"&facet=true&facet.field=libraries&f.libraries.facet.sort=true&f.libraries.facet.limit=-1&f.libraries.facet.mincount=-1
感谢
小校正,类型= “指数”(小写索引) –