On Sat, Sep 12, 2009 at 3:25 AM, Mohamed Parvez <par...@gmail.com> wrote:

> Is its possible to concatenate two fields and copy it to a new field, in
> the
> schema.xml file
>
> I am importing from two tables and both have numeric value as primary key.
>
> If i copy just the primary key, which is a number, from both the tables, to
> one field and make it primary key, records may get over written.
>
> So i want  create a composite primary key for solar schema by concatenating
> two fields.
>

Are you using DataImportHandler? If yes, then you can use
TemplateTransformer to achieve this. If not, then you can either concatenate
the values before sending it to Solr or you can write a custom
UpdateRequestProcessor which can do this.

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to