The DataImportHandler is a toolkit in Solr. It has a few different kinds of plugins. It is very possible that you do not have to write any Java code.
If you have an unusual external data feed (database, file system, Amazon S3 buckets) then you would write a Datasource. The only examples are the source code in trunk/solr/contrib/dataimporthandler. http://wiki.apache.org/solr/DataImportHandler On Fri, Jun 8, 2012 at 8:35 PM, ram anam <ram_a...@hotmail.com> wrote: > > Hi Eric, > I cannot disclose the data source which we are planning to index inside SOLR > as it is confidential. But client wants it be in the form of Import Handler. > We plan to install Solr and our custom data import handlers so that client > can just consume it. Could you please provide me the pointers to examples of > Custom Data Import Handlers. > > Thanks and regards,Ram Anam. > >> Date: Fri, 8 Jun 2012 13:59:34 -0400 >> Subject: Re: Writing custom data import handler for Solr. >> From: erickerick...@gmail.com >> To: solr-user@lucene.apache.org >> >> You need to back up a bit and describe _why_ you want to do this, >> perhaps there's >> an easy way to do what you want. This could easily be an XY problem... >> >> For instance, you can write a SolrJ program to index data, which _might_ be >> what you want. It's a separate process runnable anywhere. See: >> http://www.lucidimagination.com/blog/2012/02/14/indexing-with-solrj/ >> >> Best >> Erick >> >> On Fri, Jun 8, 2012 at 1:29 PM, ram anam <ram_a...@hotmail.com> wrote: >> > >> > Hi, >> > >> > I am planning to write a custom data import handler for SOLR for some data >> > source. Could you give me some pointers to documentation, examples on how >> > to write a custom data import handler and how to integrate it with SOLR. >> > Thank you for help. Thanks and regards,Ram Anam. > -- Lance Norskog goks...@gmail.com