SOLR-1677: top of the Lucene Version issue

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/branches/solr@923568 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2010-03-16 03:38:38 +00:00
parent 0aa2bb79f3
commit cd4be66ce2
3 changed files with 12 additions and 0 deletions

View File

@ -110,6 +110,9 @@ New Features
* SOLR-1815: SolrJ now preserves the order of facet queries. (yonik) * SOLR-1815: SolrJ now preserves the order of facet queries. (yonik)
* SOLR-1677: Add support for choosing the Lucene Version for Lucene components within
Solr. (Uwe Schindler, Mark Miller)
Optimizations Optimizations
---------------------- ----------------------

View File

@ -31,6 +31,14 @@
-Dsolr.abortOnConfigurationError=false -Dsolr.abortOnConfigurationError=false
--> -->
<abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError> <abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
<!--
Controls what version of Lucene various components of Solr adhere to. Generally, you want
to use the latest version to get all bug fixes and improvements. It is highly recommended
that you fully re-index after changing this setting as it can affect both how text is indexed
and queried.
-->
<luceneMatchVersion>LUCENE_31</luceneMatchVersion>
<!-- lib directives can be used to instruct Solr to load an Jars identified <!-- lib directives can be used to instruct Solr to load an Jars identified
and use them to resolve any "plugins" specified in your solrconfig.xml or and use them to resolve any "plugins" specified in your solrconfig.xml or

View File

@ -136,6 +136,7 @@ public class SolrConfig extends Config {
booleanQueryMaxClauseCount = getInt("query/maxBooleanClauses", BooleanQuery.getMaxClauseCount()); booleanQueryMaxClauseCount = getInt("query/maxBooleanClauses", BooleanQuery.getMaxClauseCount());
luceneMatchVersion = getLuceneVersion("luceneMatchVersion", Version.LUCENE_24); luceneMatchVersion = getLuceneVersion("luceneMatchVersion", Version.LUCENE_24);
log.info("Using Lucene MatchVersion: " + luceneMatchVersion);
filtOptEnabled = getBool("query/boolTofilterOptimizer/@enabled", false); filtOptEnabled = getBool("query/boolTofilterOptimizer/@enabled", false);
filtOptCacheSize = getInt("query/boolTofilterOptimizer/@cacheSize",32); filtOptCacheSize = getInt("query/boolTofilterOptimizer/@cacheSize",32);