0

我有一个领域

    <fieldType name="text_path" class="solr.TextField" positionIncrementGap="100">
        <analyzer type="index">
            <tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" replace="/"/>
        </analyzer>
        <analyzer type="query">
            <tokenizer class="solr.KeywordTokenizerFactory" />
        </analyzer>
    </fieldType>

还有两个查询:

content:* AND {!parent which='-_nest_path_:* *:*'}+fullPath:"test/Test Test/Contract"

{!parent which='-_nest_path_:* *:*'}+fullPath:"test/Test Test/Contract"

它适用于第二个查询,但首先引发错误:

Caused by: org.apache.solr.parser.TokenMgrError: Lexical error at line 1, column 31.  Encountered: <EOF> after : "\"test/Test Test/Contract"


怎么了?

4

0 回答 0