On Mon, Mar 15, 2010 at 12:46 AM, blargy <zman...@hotmail.com> wrote:
> > My current DIH is configured via the requestHandler block in solrconfig.xml > > <requestHandler name="/dataimport" > class="org.apache.solr.handler.dataimport.DataImportHandler"> > <lst name="defaults"> > <str name="config">data-config.xml</str> > <lst name="datasource"> > <str name="driver">${datasource.driver}</str> > <str name="url">${datasource.url}</str> > <str name="user">${datasource.user}</str> > <str name="password">${datasource.password}</str> > <str name="batchsize">-1</str> > <str name="readOnly">true</str> > </lst> > </lst> > </requestHandler> > > My question is, does the batchsize and readOnly properties sill work if I > specify it here as opposed to the data-config.xml? I can't seem to find > this > answer anywhere. An even better question is how can I check my current > datasource configuration while the application is running? > > Yes, the batchSize and readOnly parameters will work. However, we encourage you to specify the datasource in the data-config.xml as a best practice. You can look at your solrconfig.xml through the admin dashboard. But if you change the solrconfig.xml after starting Solr, what you may see there may not reflect what is being used. -- Regards, Shalin Shekhar Mangar.