public void write gets called for each NutchDocument and collects them in inputDocs. You could, after line 60, call a customer method to read all fields and create a SQL insert statement out of it.
On Thursday 13 January 2011 13:55:14 PEEYUSH CHANDEL wrote: > hi markus, > > i try to modify the SolrWriter.java class and place my mysql connecter > their but nothing > > happens so can please explain a little more with example of code that > exactly which > > part of SolrWriter class is going to be replace by mysql connecter. > > -Thanks You Very Much > > On 1/13/11, Markus Jelsma <[email protected]> wrote: > > Here's the class you need to look at: > > http://svn.apache.org/viewvc/nutch/branches/branch-1.2/src/java/org/apach > > e/nutch/indexer/solr/SolrWriter.java?view=markup > > > >> Modifying the Solr index writer to use a MySQL connector is surely the > >> easiest short cut. > >> > >> > hi O.Klein > >> > > >> > thanks for the answer but i am using nutch 1.2 so any solution for > >> > this version. > >> > > >> > On 1/13/11, O. Klein <[email protected]> wrote: > >> > > Nutch 2.0 supports storage of data in MySQL DB. > >> > > > >> > > But that version is not for production yet. > >> > > > >> > > Check http://techvineyard.blogspot.com/2010/12/build-nutch-20.html > >> > > on how to get it running. > >> > > -- > >> > > View this message in context: > >> > > http://lucene.472066.n3.nabble.com/Connecting-MySQL-to-Apache-Nutch- > >> > > tp2 24 3983p2244263.html Sent from the Nutch - User mailing list > >> > > archive at > >> > > Nabble.com. -- Markus Jelsma - CTO - Openindex http://www.linkedin.com/in/markus17 050-8536620 / 06-50258350

