I am trying to figure out how to configure Solr. I have worked with the
example and have been reading over the wiki, and am having some difficulty
figuring out how I would setup this simple scenario:

index a large number of text files(they aren't the csv files solr can ingest
directly) that are named using an id. I have the schema.xml setup like this:
   <field name="id"    type="string" indexed="true" stored="true"
required="true" />
   <field name="subname" type="string" indexed="true" stored="true"/>
   <field name="content" type="text"   indexed="true" stored="false"/>

I want to be able to define the id and subname fields in an xml file like
this:
<add>
<doc>
  <field name="id">0000110121212000232300002323</field>
  <field
name="subname">0000110121212000232300002323_SYSTEM_OUT_0000.data</field>
</doc>
</add>

But I want the 'content' field for the entry to be filled in with the
contents of one of these id named files. I was looking into setting up a
DataImportHandler but it looked like this was targeted at database
uses(except the PlainTextEntityProcessor, which isn't available in the
latest release [1.3]). What is the best way to go about doing this for Solr? 
-- 
View this message in context: 
http://www.nabble.com/Solr-configuration-with-Text-files-tp22438201p22438201.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to