It was actually very easy. I followed the tutorial at
http://wiki.apache.org/solr/DataImportHandler . The only thing I forgot was
that I had to define the fields that I have in data-config.xml also in
solrconfig.xml. Another issue I'm having with the wiki article is that it
doesn't mention where you need to store a custom transformer file. I'm no
Java wiz and I have no clue. 

I have also a lot of multiValued fields, but I'm not sure if I can write a
custom transformer that can turn a string into a multivalued field. I have a
string that I want to split and store in an array. All the values of this
array need to be stored in a multivalued field. Is this possible?

I have now expanded my data-config file with more records and I will be
doing some more extensive testing in the near future. But I'm happy so far.

Kind regards,

Nick


Matthew Runo wrote:
> 
> So you were able to get things working? What was your experience with  
> the DataImportHandler like?
> 
> Thanks for your time!
> 
> Matthew Runo
> Software Engineer, Zappos.com
> [EMAIL PROTECTED] - 702-943-7833
> 
> On Oct 23, 2008, at 6:50 AM, Nick80 wrote:
> 
>>
>> Never mind. I needed to specify in schema.xml that the field is  
>> multiValued.
>> -- 
>> View this message in context:
>> http://www.nabble.com/How-to-search-a-DataImportHandler-solr-index-tp20120698p20131412.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-search-a-DataImportHandler-solr-index-tp20120698p20134681.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to