i have tried two methods to define as follow:
1)
      <updateRequestProcessorChain name="concatFields">
                <processor class="solr.CloneFieldUpdateProcessorFactory"> 
                        <str name="source">id</str> 
                        <str name="dest">id_title</str> 
                </processor> 
                <processor class="solr.CloneFieldUpdateProcessorFactory"> 
                        <str name="source">title</str> 
                        <str name="dest">id_title</str> 
                </processor> 
                <processor class="solr.LogUpdateProcessorFactory" /> 
                <processor class="solr.RunUpdateProcessorFactory" />
        </updateRequestProcessorChain> 

2)
  <updateRequestProcessorChain name="concatFields">
    <processor class="solr.ConcatFieldUpdateProcessorFactory">
                  <str name="field">id</str>
                  <str name="field">title</str>
                   <str name="dest">id_title</str>
                  <str name="delimiter">,</str>
        </processor>
  </updateRequestProcessorChain> 
        

but none of them is working.

i am indexing using solr indexing portal :  
http://localhost:8983/solr/#/<corename>/documents

using above configuration i should get response with "id_title" as new field
in solr  :    http://localhost:8983/solr/ssp/select?q=*&wt=json&indent=true

but no such field found.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/concat-2-fields-tp4271760p4272895.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to