You can also define multiple dataimporthandlers in solrconfig.xml, each
with their own data-config.


On Wed, Sep 18, 2013 at 7:45 AM, Alexandre Rafalovitch
<arafa...@gmail.com>wrote:

> You can create multiple entities in DIH definition and they will all run.
> Means duplicating the mapping definition apart from dataSource name, but is
> doable.
>
> Alternatively, the configuration file is read on every call to DIH. You can
> edit file between different invocations or autogenerate different files
> from common template and pass the name as parameter.
>
> Regards,
>    Alex.
>
> Personal website: http://www.outerthoughts.com/
> LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
> - Time is the quality of nature that keeps events from happening all at
> once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD book)
>
>
> On Wed, Sep 18, 2013 at 10:39 AM, Liu Bo <diabl...@gmail.com> wrote:
>
> > Hi all
> >
> > Our system has distributed MySQL databases, we create a database for
> every
> > customer signed up and distributed it to one of our MySQL hosts.
> >
> > We currently use lucene core to perform search on these databases, and we
> > write java code to loop through these databases and convert the data to
> > lucene index.
> >
> > Right now we are planning to move to Solr for distribution, and I am
> doing
> > investigation on it.
> >
> > I tried to use DataImportHandler<
> > http://wiki.apache.org/solr/DataImportHandler>
> > in
> > the wiki page, but I can't figured out a way to use multiple datasoures
> > with the same schema.
> >
> > The other question is, we have the database connection data in one table,
> > can I create datasource connections info from it, and loop through the
> > databases using DataImporter?
> >
> > If DataImporter isn't working, is there a way to feed data to solr using
> > customized SolrRequestHandler without using SolrJ?
> >
> > If neither of these two ways is working, I think I am going to reuse the
> > DAO of the old project and feed the data to solr using SolrJ, probably
> > using embedded Solr server.
> >
> > Your help will be much of my appreciation.
> >
> > <http://wiki.apache.org/solr/DataImportHandlerFaq>--
> > All the best
> >
> > Liu Bo
> >
>

Reply via email to