This all comes from a database? Here is what you want. The DataImportHandler includes a toolkit for doing full and incremental loading from databases.
Read this first: http://www.lucidimagination.com/search/link?url=http://wiki.apache.org/solr/DIHQuickStart Then these: http://www.lucidimagination.com/search/link?url=http://wiki.apache.org/solr/DataImportHandlerFaq http://lucidworks.lucidimagination.com/display/solr/Uploading+Structured+Data+Store+Data+with+the+Data+Import+Handler After you try the procedure in QuickStart and read the other two, if you still have questions please ask. Cheers! On Fri, Apr 13, 2012 at 12:34 PM, srini <softtec...@gmail.com> wrote: > Thanks Again for quick reply. Little curious about the procedure you > suggested. I thought of using same procedure as you suggested. Like writing > a java program to fetch xml record from db and parse the content hand it to > Solr for indexing. > > but what if my database content get changed? should I re run my java program > to fetch xml and add to solr for re indexing? > > the content of xml format does not match to solr example xml formats. Any > suggestions here? > > when I import xml records from oracle and add it to solr and search for a > word, solr is displaying whole xml doc which has that word. what is wrong > with this procedure( I do see my search word in the content of xml, only bad > part is it is displaying whole doc instead CDATA part of it). Please suggest > if there is better of doing this task other than SolrJ > > Thanks in Advance > Srini > > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Solr-is-not-extracting-the-CDATA-part-of-xml-tp3908317p3908825.html > Sent from the Solr - User mailing list archive at Nabble.com. -- Lance Norskog goks...@gmail.com