1

我的 schema.xml 具有以下字段类型:

    <fieldType name="string_searchable" class="solr.TextField">
        <analyzer type="index">
            <tokenizer class="solr.KeywordTokenizerFactory"/>
            <filter class="solr.LowerCaseFilterFactory"/>
        </analyzer>
        <analyzer type="query">
            <tokenizer class="solr.KeywordTokenizerFactory"/>
            <filter class="solr.LowerCaseFilterFactory"/>
        </analyzer>
    </fieldType>

<field name="pub_title" type="string_searchable" indexed="true" stored="true"  multiValued="true"/>

以下数据存在于其中一个方面(不带双引号):pub_title:"Current Concept on the Classification and Treatment of Spondylolistes"

我在 q 的 solr 查询控制台上触发以下查询,但没有得到任何结果:

pub_title:*Treatment of Spondylolisthesis*

当我尝试使用下面的 q 参数进行搜索时,它可以工作,但搜索操作需要两倍的时间:

pub_title:*Treatment\ of\ Spondylolisthesis*

我想要一个完整的字符串(不带双引号)“当前关于脊椎滑脱分类和治疗的概念”的方面。我还需要强调这个领域。

我尝试使用solr.StandardTokenizerFactory,但方面已被标记化。

请让我知道我哪里出错了。

谢谢, 普拉内

4

0 回答 0