On Thu, Aug 20, 2009 at 7:07 PM, ahammad <ahmed.ham...@gmail.com> wrote:

>
> Hello,
>
> Is it possible to add a prefix to the data in a Solr field? For example,
> right now, I have a field called "id" that gets data from a DB through the
> DataImportHandler. The DB returns a 4-character string like "ag5f". Would
> it
> be possible to add a prefix to the data that is received?
>

Easiest way is to use TemplateTransformer. The field definition can look
like:

<field column="id" template="Article_${entity.id}" />

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to