Re: dataimport handler multiple databases

2008-04-02 Thread Noble Paul നോബിള്‍ नोब्ळ्
each entity has an optional attribute called dataSource.
If you have multiple dataSources give them a name and use the name is
dataSource .So you solrconfig must look like

   
 /home/username/data-config.xml
 
datasource-1
com.mysql.jdbc.Driver

 
  
datasource-2
com.mysql.jdbc.Driver

 
   
 

and each entity can have its dataSource attribute refer to something
eg:






But as I see you have a usecase where prod and qa uses different dbs. But

So betweenprod and qa us can change the solrconfig xml
--Noble

On undefined, Ismail Siddiqui <[EMAIL PROTECTED]> wrote:
> Hi I have a situaion where I am using dataimport handler with development db
>  and  going to use it with production database in production environment
>
>  I have entry in solr-config.xml like this
>
>class="org.apache.solr.handler.dataimport.DataImportHandler">
> 
>   /home/username/data-config.xml
>   
>  com.mysql.jdbc.Driver
>  jdbc:mysql://localhost/dbname
>  db_username
>  db_password
>   
> 
>   
>
>  I understand i can add  another datasource called datasource-2 . but how can
>  I can use this datasource to index data
>
>  currently i am colling somethign  /dataimport?command=full-import or
>  /dataimport?command=delta-import.How can i define a particular db to be
>  called
>  so it indexes dev db on development machine and prod db in production
>  environmnt.
>
>
>  thanks
>



-- 
--Noble Paul


dataimport handler multiple databases

2008-04-02 Thread Ismail Siddiqui
Hi I have a situaion where I am using dataimport handler with development db
and  going to use it with production database in production environment

I have entry in solr-config.xml like this



  /home/username/data-config.xml
  
 com.mysql.jdbc.Driver
 jdbc:mysql://localhost/dbname
 db_username
 db_password
  

  

I understand i can add  another datasource called datasource-2 . but how can
I can use this datasource to index data

currently i am colling somethign  /dataimport?command=full-import or
/dataimport?command=delta-import.How can i define a particular db to be
called
so it indexes dev db on development machine and prod db in production
environmnt.


thanks