如何做Solr的PointFields通配符查询

问题描述 投票:1回答:1

我建立一个新的模式,我尝试使用新的solr.IntPointField代替solr.TrieIntField的。

一切都很好,到目前为止,除了我不能代表所有的文件与任何值搜索特定的领域。

通常我会做foo:*但它不返回任何结果。

这里是我的架构

<fields>
       <field name="foo" type="pint" indexed="true" stored="true" multiValued="false"/>
</fields>

<types> 
    <fieldType name="pint" class="solr.IntPointField" docValues="true"/>docValues="true" />
     ...
</types>
solr
1个回答
2
投票

常用的语法,发现有一个值给定域是foo:[* TO *]任何文件。这也应该适用于该点类型。

© www.soinside.com 2019 - 2024. All rights reserved.