You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Morris, Paul E." <pm...@nsf.gov> on 2015/06/17 21:06:35 UTC

adding XML data to SOLR index using DIH (xml-data-config)

We regularly create a SOLR index from XML files, using the DIH with a suitably edited xml-data-config.xml. However, whenever new XML become available it seems like we have to rebuild the entire index again using the Data Import Handler. Are we missing something? Should it be possible to add new XML to the index using /dataimport with delta-import selected?

Many thanks if anyone has been able to add new XML files to the SOLR index without reindexing everything again.

Paul





Re: adding XML data to SOLR index using DIH (xml-data-config)

Posted by Erick Erickson <er...@gmail.com>.
There's no a-priori reason you should need to do this. What's your
evidence here? What
behaviors do you see when you try this? Details matter as Hoss would
say. Give us an
example of what changes in the XML file (and/or schema) you see that
you think require
re-indexing.

Of course if you're adding new fields to schema.xml you need to reload
(or restart) Solr.

Best,
Erick

On Wed, Jun 17, 2015 at 12:06 PM, Morris, Paul E. <pm...@nsf.gov> wrote:
> We regularly create a SOLR index from XML files, using the DIH with a suitably edited xml-data-config.xml. However, whenever new XML become available it seems like we have to rebuild the entire index again using the Data Import Handler. Are we missing something? Should it be possible to add new XML to the index using /dataimport with delta-import selected?
>
> Many thanks if anyone has been able to add new XML files to the SOLR index without reindexing everything again.
>
> Paul
>
>
>
>