Jae,

The easiest way to do this is with CopyField.  

These entries in your schema will accomplish that:

<field name="field3" type="String" indexed="true" stored="false"
multiValued="true"/>

<copyField source="field1" dest="field3"/>
<copyField source="field2" dest="field3"/>


Field 3 will have the tokens from both field 1 and 2 in it.

If you want to merge those 2 fields for display, I would just concat
them at display time.

Dave



-----Original Message-----
From: Jae Joo [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 05, 2007 9:22 AM
To: solr-user
Subject: Merging Fields

Is there any way to merge fields  during indexing time.

I have field1 and field2 and would like to combine these fields and make
field3.
In the document, there are field1 and field2, and I may build field3
using
CopyField.

Thanks,

Jae

Reply via email to