Thank you Alex.

On Mon, Jul 15, 2013 at 12:37 PM, Alexandre Rafalovitch
<arafa...@gmail.com>wrote:

> I don't think you can get there from here.
>
> But you can specify config file on a query line. If you only have a couple
> of configurations, you could have them in different files and switch that
> way.
>
> 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 Mon, Jul 15, 2013 at 2:56 PM, Kiran J <kiranjuni...@gmail.com> wrote:
>
> > Hi,
> >
> > I want to dynamically specify the data source in the URL when invoking
> data
> > import handler. I'm looking at this :
> >
> > http://wiki.apache.org/solr/DataImportHandler#solrconfigdatasource
> >
> >   <requestHandler name="/dataimport"
> > class="org.apache.solr.handler.dataimport.DataImportHandler">    <lst
> > name="defaults">      <str
> > name="config">/home/username/data-config.xml</str>      <lst
> > name="datasource">         <str
> > name="driver">com.mysql.jdbc.Driver</str>         <str
> > name="url">jdbc:mysql://localhost/dbname</str>         <str
> > name="user">db_username</str>         <str
> > name="password">db_password</str>      </lst>    </lst>
> > </requestHandler>
> >
> >
> > Can anyone give me a good example ?
> >
> > ie http://localhost:8983/solr/dataimport?datasource=<what goes here ?>
> >
> > Your help is much appreciated.
> >
> > Thanks
> >
>

Reply via email to