I'll reply for Lance because I'm awake earlier <G>... To make your own DIH, you have to solve all the problems you'd have to solve to use a Java program connect to your datasource via JDBC, PLUS fit it into the DIH framework. Why do the extra work?
The other thing is that writing your own code gives you much greater control over, say, error handling, exception handling, continue-or-abort decisions, etc. DIH is a good tool, don't get me wrong, but I prefer more control in production situations. Plus, connecting to Solr via SolrJ AND connecting to your database takes about 20 lines of code, it's not very complex. You can have that done pretty quickly... But if you'd rather make your own DIH, it's up to you. Best Erick On Fri, Jan 28, 2011 at 12:38 AM, Dennis Gearon <gear...@sbcglobal.net>wrote: > Why not make one's own DIH handler, Lance? > > Dennis Gearon > > > Signature Warning > ---------------- > It is always a good idea to learn from your own mistakes. It is usually a > better > idea to learn from others’ mistakes, so you do not have to make them > yourself. > from 'http://blogs.techrepublic.com.com/security/?p=4501&tag=nl.e036' > > > EARTH has a Right To Life, > otherwise we all die. > > > > ----- Original Message ---- > From: Lance Norskog <goks...@gmail.com> > To: solr-user@lucene.apache.org > Sent: Thu, January 27, 2011 9:33:25 PM > Subject: Re: Solr for noSQL > > There no special connectors available to read from the key-value > stores like memcache/cassandra/mongodb. You would have to get a Java > client library for the DB and code your own dataimporthandler > datasource. I cannot recommend this; you should make your own program > to read data and upload to Solr with one of the Solr client libraries. > > Lance > > On 1/27/11, Jianbin Dai <j...@huawei.com> wrote: > > Hi, > > > > > > > > Do we have data import handler to fast read in data from noSQL database, > > specifically, MongoDB I am thinking to use? > > > > Or a more general question, how does Solr work with noSQL database? > > > > Thanks. > > > > > > > > Jianbin > > > > > > > > > > > -- > Lance Norskog > goks...@gmail.com > >