you should construct the xml containing the fields defined in your schema.xml and give them the values from the text files. for example if you have an schema defining two fields "title" and "text" you should construct an xml with a field "title" and its value and another called "text" containing the body of your doc. then you can post it to Solr you have deployed and make a commit an it's done. it's possible to construct an xml defining more than jus t a doc
<add> <doc> <field name="title">"doc1 title"</field> <field name="text">"doc1 text"</field> </doc> . . . <doc> <field name="title">"docn title"</field> <field name="text">"docn text"</field> </doc> </add> 2009/4/14 Noble Paul നോബിള് नोब्ळ् <noble.p...@gmail.com> > what is the cntent of your text file? > Solr does not directly index files > --Noble > > On Tue, Apr 14, 2009 at 3:54 AM, Alex Vu <alex.v...@gmail.com> wrote: > > Hi all, > > > > Currently I wrote an xml file and schema.xml file. What is the next step > to > > index a txt file? Where should I put my txt file I want to index? > > > > thank you, > > Alex V. > > > > > > -- > --Noble Paul >