对copyField的获取返回空结果...这是Solr搜索的预期行为吗?

时间:2016-03-02 09:11:43

标签: solr

            <schema name="autoSolrSchema" version="1.5">
            <types>
            <fieldType name="text_general" class="solr.StrField"  />
            <fieldType name="searchTokenizer" class="solr.TextField" positionIncrementGap="100">
                <analyzer type="index">
                    <tokenizer class="solr.NGramTokenizerFactory"/>
                    <filter class="solr.EdgeNGramFilterFactory" minGramSize="2" maxGramSize="15"/>
                    <filter class="solr.LowerCaseFilterFactory" />  
                 </analyzer>
                <analyzer type="query">
                    <tokenizer class="solr.NGramTokenizerFactory"/>
                    <filter class="solr.LowerCaseFilterFactory" />
                </analyzer> 
            </fieldType>
            </types>
            <fields>
            <field indexed="true"  name="field_id"   stored="true" type="searchTokenizer"/>
            <field indexed="true" multiValued="false" name="company"  stored="true" type="searchTokenizer"/>
            <field indexed="true" multiValued="false" name="include" stored="true" type="text_general"/>
            <field name="actualCompany" type="text_general" indexed="true" stored="true" />
            </fields>
            <uniqueKey>field_id</uniqueKey>
             <copyField source="company" dest="actualCompany"/>
             </schema>

我使用了以下查询:     ?HTTP://本地主机:8983 / solr的/ listSearch /选择Q = %3A &安培; FL = actualCompany&安培;重量= JSON&安培;缩进=真 但我得到的结果如下:                     {                       “responseHeader”:{                         “状态”:0,                         “QTIME”:1,                         “PARAMS”:{                           “Q”: “”,                           “缩进”:“真”,                           “FL”: “actualCompany”                           “重量”: “JSON”}},                       “响应”:{ “numFound”:420550, “开始”:0, “文档”:[                           {},                           {},                           {},                           {},                           {},                           {},                           {},                           {},                           {},                           {}]                       }}

copyField有什么问题。请指教我。

0 个答案:

没有答案