lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ahammad <ahmed.ham...@gmail.com>
Subject Adding a prefix to fields
Date Thu, 20 Aug 2009 13:37:56 GMT

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?

In this specific case, the data relates to articles. So effectively, if the
DB has "ag5f" as an ID, I want it to be stored as "Article_ag5f". Is there a
way to define a prefix of "Article_" for a certain field?

I am aware that this can be done by writing a transformer. I already have 4
transformers handling a multitude of other things, and I would prefer an
alternative...

Thanks
-- 
View this message in context: http://www.nabble.com/Adding-a-prefix-to-fields-tp25062226p25062226.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message