If for search just copyField into a multivalued field....

Or do it on indexing using DIH or code. A rhino script works too.

Bill Bell
Sent from mobile


On Aug 27, 2013, at 7:15 AM, "Jack Krupansky" <j...@basetechnology.com> wrote:

> I have additional examples in the two most recent early access releases of my 
> book - variations on using the existing update processors.
> 
> -- Jack Krupansky
> 
> -----Original Message----- From: Federico Chiacchiaretta
> Sent: Tuesday, August 27, 2013 8:39 AM
> To: solr-user@lucene.apache.org
> Subject: Re: Concat 2 fields in another field
> 
> Hi,
> we do the same thing using an update request processor chain, this is the
> snippet from solrconfig.xml
> 
> <updateRequestProcessorChain name="concatenation">
> <processor class="solr.CloneFieldUpdateProcessorFactory"> <str name="source"
>> firstname</str> <str name="dest">concatfield</str> </processor> <processor
> class="solr.CloneFieldUpdateProcessorFactory"> <str name="source">lastname</
> str> <str name="dest">concatfield</str> </processor> <processor class=
> "solr.ConcatFieldUpdateProcessorFactory"> <str name="fieldName">concatfield
> </str> <str name="delimiter">_</str> </processor>
> <processor class="solr.LogUpdateProcessorFactory" /> <processor class=
> "solr.RunUpdateProcessorFactory" />
> </updateRequestProcessorChain>
> 
> 
> Regards,
> Federico Chiacchiaretta
> 
> 
> 
> 2013/8/27 Markus Jelsma <markus.jel...@openindex.io>
> 
>> You may be more interested in the ConcatFieldUpdateProcessorFactory:
>> 
>> http://lucene.apache.org/solr/4_1_0/solr-core/org/apache/solr/update/processor/ConcatFieldUpdateProcessorFactory.html
>> 
>> 
>> 
>> -----Original message-----
>> > From:Alok Bhandari <alokomprakashbhand...@gmail.com>
>> > Sent: Tuesday 27th August 2013 14:05
>> > To: solr-user@lucene.apache.org
>> > Subject: Re: Concat 2 fields in another field
>> >
>> > Thanks for reply.
>> >
>> > But I don't want to introduce any scripting in my code so want to know > is
>> > there any Java component available for the same.
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://lucene.472066.n3.nabble.com/Concat-2-fields-in-another-field-tp4086786p4086791.html
>> > Sent from the Solr - User mailing list archive at Nabble.com.
>> >
> 

Reply via email to