You can directly update Solr using a "CSV" file and specify an alternate
separator character:
http://wiki.apache.org/solr/UpdateCSV#separator
-- Jack Krupansky
-----Original Message-----
From: bharat
Sent: Tuesday, August 20, 2013 5:01 AM
To: solr-user@lucene.apache.org
Subject: convert text file to solr document where delimiter fields are
fields of document
I have a text file which consist of the following data
andy~1234;M~64365113~2P3VWU3H10~~
mike~4152;M~64365113~2P3VWU3H10~0.6~MG
lesa~4512;F,PM~~N/A~16~MG
riky~7845;M,PM2~~N/A~3.99~MG
I wish to convert it into a solr document in the following manner :
1. Each row is considered as 1 <doc> document in solr.
2. '~' is a delimiter which means fields <field> of document.
Do I need to use a DataImportHandler for handling these kind of files? which
kind of DataImportHandler is useful. I've gone through LineEntityProcessor,
but i didn't understand how I can use it for my problem.
--
View this message in context:
http://lucene.472066.n3.nabble.com/convert-text-file-to-solr-document-where-delimiter-fields-are-fields-of-document-tp4085611.html
Sent from the Solr - User mailing list archive at Nabble.com.