You might just be missing <entity ... transformer="TemplateTransformer" /> .

See http://wiki.apache.org/solr/DataImportHandler#TemplateTransformer

James Dyer
E-Commerce Systems
Ingram Content Group
(615) 213-4311


-----Original Message-----
From: Kiran Jayakumar [mailto:kiranjuni...@gmail.com] 
Sent: Thursday, August 30, 2012 1:54 PM
To: solr-user@lucene.apache.org
Subject: Static template column in DIH

Hi everyone,

I have defined a template column like this:

<entity name="books" query="select * from books">
<field name="Category" column="Category" template="Books"/>
</entity>

I dont have a field called Category in my query, but defined in schema.xml.
I'm expecting it to populate the Category field with a fixed value "Books".
It doesnt work. What am I missing ? Any help is much appreciated.

Thanks

Reply via email to