On 2/23/2016 3:13 AM, Ilan Schwarts wrote:
> Hi, I am migrating old schema/solrconfig to a new solrcloud 5.2 from 4.3.1
> single core.
> In this guide:
> https://cwiki.apache.org/confluence/display/solr/SolrCloud+with+Legacy+Configuration+Files
> They tell you:
> <updateHandler>
>   <updateLog>
>     <str name="dir">${solr.data.dir:}</str>
>   </updateLog>
> </updateHandler>
> And in the other guide:
> https://cwiki.apache.org/confluence/display/solr/UpdateHandlers+in+SolrConfig
> They tell you
> <updateLog>
>   <str name="dir">${solr.ulog.dir:}</str>
>   <int name="numRecordsToKeep">500</int>
>   <int name="maxNumLogsToKeep">20</int>
>   <int name="numVersionBuckets">65536</int>
> </updateLog>
>
> So what should I use ? solr.data.dir Or solr.udir.dir ? Or both nodes ?
> I am trying to integrate my existing UpdateRequestHandler plugin.

I personally would just use this:

<updateLog />

This enables the transaction log with all default settings.  If you end
up needing to change the default settings, then you can expand it to an
open tag and a close tab with the settings you need in between.  It is
rarely necessary to change the directory for the update log to something
other than the default.

My general rule for solrconfig.xml:  Don't add more configuration than
you need.  If the defaults for a particular setting are acceptable,
leave the config out.

The solr.data.dir and solr.ulog.dir values you see are java properties. 
When you're running SolrCloud or multiple cores, using properties in
file locations can cause problems if you do not know *exactly* what you
are doing.

Thanks,
Shawn

Reply via email to