首页 > 解决方案 > updateRequestProcessorChain 不适用于 Solr 文档

问题描述

在我的 solr 核心中,我没有看到在我的文档中创建的 aList_s。我没有在 db-data-config.xml 中指定这个,并且 bList 没有转换为单个值。我在 db-data-config 中指定了这个。厘米。,我还是 bList 有多个值。使用 Solr5。我错过了什么吗?

My solrConfig.xml below
      
      <updateRequestProcessorChain name="my-conversion">
        <processor class="solr.CloneFieldUpdateProcessorFactory">
        <str name="source">aList</str>
        <str name="dest">aList_s</str>
        </processor>
        <processor class="solr.FirstFieldValueUpdateProcessorFactory">
        <str name="fieldName">bList</str>
        </processor>
      </updateRequestProcessorChain>
    
    My schema for this looks like
    
    <field name="aList"  type="string_ci"    indexed="false" required="false" stored="true"  multiValued="true" />  
    <field name="aList_s"  type="string_ci"    indexed="false" required="false" stored="true"  multiValued="true" />    
    <field name="bList"  type="string_ci"    indexed="false" required="false" stored="true"  multiValued="true" />

标签: solrsolrjsolr4

解决方案


推荐阅读