No. DataImportHandler runs inside of Solr itself so it does not need to use HTTP. It reads databases using Jdbc and uses API calls to create and load documents into Solr. Benefits over custom solutions would include speed (no HTTP/XML parsing overhead) and ofcourse all benefits of open source software apply :)
On Wed, Jun 11, 2008 at 2:23 AM, wojtekpia <[EMAIL PROTECTED]> wrote: > > Does the DataImportHandler use HTTP to load documents into Solr? > > Is there any (run-time) performance benefit to using it rather than a > custom > MySQL -> XML solution? > > > > Shalin Shekhar Mangar wrote: > > > > Hi Rusli, > > > > Without going into specifics, I can tell you that we're using > > DataImportHandler successfully in production with many millions of > > documents > > being imported from databases. Try it out and let us know if you face any > > problems. DataImportHandler will be part of Solr 1.3 (the next release) > > and > > may be committed quite soon after which you may not need to fiddle with > > patches. > > > > Disclaimer: Since I'm one of the developers, I may be biased :) > > > > On Tue, Jun 10, 2008 at 6:11 PM, Rusli Ruslakall > > <[EMAIL PROTECTED]> > > wrote: > > > >> I wanted to see what people think about using DataImportHandler and > >> importing directly from mysql rather than with XML. > >> > >> I have already programmed mysql -> XML in PHP and configured Solr to > >> import it when I realized I could use DataImportHandler and skip the > >> XML stage. Are there any negatives of using DataImportHandler? I would > >> have to use the patch that complicates the process I guess when its > >> kind of tempting to try to use Solr as much vanilla as possible. > >> > >> What is the general method when using database information? > >> > > > > > > > > -- > > Regards, > > Shalin Shekhar Mangar. > > > > > > -- > View this message in context: > http://www.nabble.com/XML-vs-mysql-import-with-DataImportHandler-tp17754471p17764425.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- Regards, Shalin Shekhar Mangar.