SOLR-2259: use $tests.luceneMatchVersion in all test files, make this parameter mandatory in trunk

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1040982 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-12-01 12:37:01 +00:00
parent e7214a0f6f
commit 836873d779
40 changed files with 45 additions and 32 deletions

View File

@ -17,6 +17,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<!-- Set this to 'false' if you want solr to continue working after it has <!-- Set this to 'false' if you want solr to continue working after it has
encountered an severe configuration error. In a production environment, encountered an severe configuration error. In a production environment,
you may want solr to keep working even if one handler is mis-configured. you may want solr to keep working even if one handler is mis-configured.

View File

@ -17,6 +17,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<!-- Set this to 'false' if you want solr to continue working after it has <!-- Set this to 'false' if you want solr to continue working after it has
encountered an severe configuration error. In a production environment, encountered an severe configuration error. In a production environment,
you may want solr to keep working even if one handler is mis-configured. you may want solr to keep working even if one handler is mis-configured.

View File

@ -17,6 +17,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<!-- Set this to 'false' if you want solr to continue working after it has <!-- Set this to 'false' if you want solr to continue working after it has
encountered an severe configuration error. In a production environment, encountered an severe configuration error. In a production environment,
you may want solr to keep working even if one handler is mis-configured. you may want solr to keep working even if one handler is mis-configured.

View File

@ -17,6 +17,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<!-- Set this to 'false' if you want solr to continue working after it has <!-- Set this to 'false' if you want solr to continue working after it has
encountered an severe configuration error. In a production environment, encountered an severe configuration error. In a production environment,
you may want solr to keep working even if one handler is mis-configured. you may want solr to keep working even if one handler is mis-configured.

View File

@ -17,6 +17,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<!-- Set this to 'false' if you want solr to continue working after it has <!-- Set this to 'false' if you want solr to continue working after it has
encountered an severe configuration error. In a production environment, encountered an severe configuration error. In a production environment,
you may want solr to keep working even if one handler is mis-configured. you may want solr to keep working even if one handler is mis-configured.

View File

@ -117,8 +117,8 @@
--> -->
<fieldtype name="text" class="solr.TextField"> <fieldtype name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.ClassicTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.ClassicFilterFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
@ -133,7 +133,7 @@
<fieldtype name="teststop" class="solr.TextField"> <fieldtype name="teststop" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.LowerCaseTokenizerFactory"/> <tokenizer class="solr.LowerCaseTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.ClassicFilterFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt"/> <filter class="solr.StopFilterFactory" words="stopwords.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldtype>
@ -168,14 +168,14 @@
</fieldtype> </fieldtype>
<fieldtype name="standardtokfilt" class="solr.TextField"> <fieldtype name="standardtokfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.ClassicTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.ClassicFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldtype>
<fieldtype name="standardfilt" class="solr.TextField"> <fieldtype name="standardfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.ClassicFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldtype>
<fieldtype name="lowerfilt" class="solr.TextField"> <fieldtype name="lowerfilt" class="solr.TextField">

View File

@ -23,7 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<jmx /> <jmx />
<!-- Used to specify an alternate directory to hold all index data. <!-- Used to specify an alternate directory to hold all index data.

View File

@ -21,7 +21,7 @@
It is *not* a good example to work from. It is *not* a good example to work from.
--> -->
<config> <config>
<luceneMatchVersion>LUCENE_40</luceneMatchVersion>
<!-- The DirectoryFactory to use for indexes. <!-- The DirectoryFactory to use for indexes.
solr.StandardDirectoryFactory, the default, is filesystem based. solr.StandardDirectoryFactory, the default, is filesystem based.
solr.RAMDirectoryFactory is memory based, not persistent, and doesn't work with replication. --> solr.RAMDirectoryFactory is memory based, not persistent, and doesn't work with replication. -->

View File

@ -21,6 +21,7 @@
It is *not* a good example to work from. It is *not* a good example to work from.
--> -->
<config> <config>
<luceneMatchVersion>LUCENE_40</luceneMatchVersion>
<!-- The DirectoryFactory to use for indexes. <!-- The DirectoryFactory to use for indexes.
solr.StandardDirectoryFactory, the default, is filesystem based. solr.StandardDirectoryFactory, the default, is filesystem based.
solr.RAMDirectoryFactory is memory based, not persistent, and doesn't work with replication. --> solr.RAMDirectoryFactory is memory based, not persistent, and doesn't work with replication. -->

View File

@ -138,7 +138,7 @@ public class SolrConfig extends Config {
reopenReaders = getBool("mainIndex/reopenReaders", true); reopenReaders = getBool("mainIndex/reopenReaders", true);
booleanQueryMaxClauseCount = getInt("query/maxBooleanClauses", BooleanQuery.getMaxClauseCount()); booleanQueryMaxClauseCount = getInt("query/maxBooleanClauses", BooleanQuery.getMaxClauseCount());
luceneMatchVersion = getLuceneVersion("luceneMatchVersion", Version.LUCENE_30); luceneMatchVersion = getLuceneVersion("luceneMatchVersion");
log.info("Using Lucene MatchVersion: " + luceneMatchVersion); log.info("Using Lucene MatchVersion: " + luceneMatchVersion);
filtOptEnabled = getBool("query/boolTofilterOptimizer/@enabled", false); filtOptEnabled = getBool("query/boolTofilterOptimizer/@enabled", false);

View File

@ -23,6 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<indexDefaults> <indexDefaults>
<useCompoundFile>${unset.sys.property}</useCompoundFile> <useCompoundFile>${unset.sys.property}</useCompoundFile>
</indexDefaults> </indexDefaults>

View File

@ -23,7 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<jmx /> <jmx />
<!-- Used to specify an alternate directory to hold all index data. <!-- Used to specify an alternate directory to hold all index data.

View File

@ -18,6 +18,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<requestHandler name="standard" class="solr.StandardRequestHandler"></requestHandler> <requestHandler name="standard" class="solr.StandardRequestHandler"></requestHandler>
<directoryFactory name="DirectoryFactory" class="org.apache.solr.core.AlternateDirectoryTest$TestFSDirectoryFactory"></directoryFactory> <directoryFactory name="DirectoryFactory" class="org.apache.solr.core.AlternateDirectoryTest$TestFSDirectoryFactory"></directoryFactory>
<indexReaderFactory name="IndexReaderFactory" class="org.apache.solr.core.AlternateDirectoryTest$TestIndexReaderFactory"></indexReaderFactory > <indexReaderFactory name="IndexReaderFactory" class="org.apache.solr.core.AlternateDirectoryTest$TestIndexReaderFactory"></indexReaderFactory >

View File

@ -23,7 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<jmx /> <jmx />
<!-- Used to specify an alternate directory to hold all index data. <!-- Used to specify an alternate directory to hold all index data.

View File

@ -18,6 +18,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<mainIndex> <mainIndex>
<deletionPolicy class="org.apache.solr.core.FakeDeletionPolicy"> <deletionPolicy class="org.apache.solr.core.FakeDeletionPolicy">
<str name="var1">value1</str> <str name="var1">value1</str>

View File

@ -23,7 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<!-- Used to specify an alternate directory to hold all index data. <!-- Used to specify an alternate directory to hold all index data.
It defaults to "index" if not present, and should probably It defaults to "index" if not present, and should probably
not be changed if replication is in use. --> not be changed if replication is in use. -->

View File

@ -23,7 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<jmx /> <jmx />
<!-- Used to specify an alternate directory to hold all index data. <!-- Used to specify an alternate directory to hold all index data.

View File

@ -23,7 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<dataDir>${solr.data.dir:./solr/data}</dataDir> <dataDir>${solr.data.dir:./solr/data}</dataDir>
<!-- The DirectoryFactory to use for indexes. <!-- The DirectoryFactory to use for indexes.

View File

@ -23,7 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<!-- Used to specify an alternate directory to hold all index data. <!-- Used to specify an alternate directory to hold all index data.
It defaults to "index" if not present, and should probably It defaults to "index" if not present, and should probably
not be changed if replication is in use. --> not be changed if replication is in use. -->

View File

@ -23,7 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<!-- Used to specify an alternate directory to hold all index data. <!-- Used to specify an alternate directory to hold all index data.
It defaults to "index" if not present, and should probably It defaults to "index" if not present, and should probably
not be changed if replication is in use. --> not be changed if replication is in use. -->

View File

@ -37,7 +37,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<jmx /> <jmx />
<!-- Used to specify an alternate directory to hold all index data. <!-- Used to specify an alternate directory to hold all index data.

View File

@ -23,7 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>4.0</luceneMatchVersion> <luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<dataDir>${solr.data.dir:./solr/data}</dataDir> <dataDir>${solr.data.dir:./solr/data}</dataDir>

View File

@ -23,7 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<dataDir>${solr.data.dir:./solr/data}</dataDir> <dataDir>${solr.data.dir:./solr/data}</dataDir>
<indexDefaults> <indexDefaults>

View File

@ -23,7 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<dataDir>${solr.data.dir:./solr/data}</dataDir> <dataDir>${solr.data.dir:./solr/data}</dataDir>
<indexDefaults> <indexDefaults>

View File

@ -23,7 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<!-- Used to specify an alternate directory to hold all index data. <!-- Used to specify an alternate directory to hold all index data.
It defaults to "index" if not present, and should probably It defaults to "index" if not present, and should probably
not be changed if replication is in use. --> not be changed if replication is in use. -->

View File

@ -37,7 +37,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<jmx /> <jmx />
<!-- Used to specify an alternate directory to hold all index data. <!-- Used to specify an alternate directory to hold all index data.

View File

@ -37,7 +37,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<jmx /> <jmx />
<!-- Used to specify an alternate directory to hold all index data. <!-- Used to specify an alternate directory to hold all index data.

View File

@ -23,6 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<!-- The DirectoryFactory to use for indexes. <!-- The DirectoryFactory to use for indexes.
solr.StandardDirectoryFactory, the default, is filesystem based. solr.StandardDirectoryFactory, the default, is filesystem based.
solr.RAMDirectoryFactory is memory based and not persistent. --> solr.RAMDirectoryFactory is memory based and not persistent. -->

View File

@ -23,7 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>4.0</luceneMatchVersion> <luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<dataDir>${solr.data.dir:./solr/data}</dataDir> <dataDir>${solr.data.dir:./solr/data}</dataDir>

View File

@ -23,7 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<dataDir>${solr.data.dir:./solr/data}</dataDir> <dataDir>${solr.data.dir:./solr/data}</dataDir>
<indexDefaults> <indexDefaults>

View File

@ -23,7 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<dataDir>${solr.data.dir:./solr/data}</dataDir> <dataDir>${solr.data.dir:./solr/data}</dataDir>
<!-- The DirectoryFactory to use for indexes. <!-- The DirectoryFactory to use for indexes.

View File

@ -25,7 +25,7 @@ Config for testing spellcheck component
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<requestHandler name="standard" <requestHandler name="standard"
class="solr.StandardRequestHandler"></requestHandler> class="solr.StandardRequestHandler"></requestHandler>

View File

@ -22,7 +22,7 @@
solr.RAMDirectoryFactory is memory based and not persistent. --> solr.RAMDirectoryFactory is memory based and not persistent. -->
<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.RAMDirectoryFactory}"/> <directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.RAMDirectoryFactory}"/>
<luceneMatchVersion>4.0</luceneMatchVersion> <luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<indexDefaults> <indexDefaults>
<useCompoundFile>false</useCompoundFile> <useCompoundFile>false</useCompoundFile>

View File

@ -23,7 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<!-- see TestConfig.testLib() --> <!-- see TestConfig.testLib() -->
<lib dir="../lib-dirs/a" /> <lib dir="../lib-dirs/a" />
<lib dir="../lib-dirs/b" regex="b." /> <lib dir="../lib-dirs/b" regex="b." />

View File

@ -18,7 +18,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<!-- The DirectoryFactory to use for indexes. <!-- The DirectoryFactory to use for indexes.
solr.StandardDirectoryFactory, the default, is filesystem based. solr.StandardDirectoryFactory, the default, is filesystem based.
solr.RAMDirectoryFactory is memory based and not persistent. --> solr.RAMDirectoryFactory is memory based and not persistent. -->

View File

@ -23,7 +23,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<jmx /> <jmx />
<!-- Used to specify an alternate directory to hold all index data. <!-- Used to specify an alternate directory to hold all index data.

View File

@ -50,7 +50,7 @@
solr.RAMDirectoryFactory is memory based and not persistent. --> solr.RAMDirectoryFactory is memory based and not persistent. -->
<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.RAMDirectoryFactory}"/> <directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.RAMDirectoryFactory}"/>
<luceneMatchVersion>4.0</luceneMatchVersion> <luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<indexDefaults> <indexDefaults>
<!-- Values here affect all index writers and act as a default <!-- Values here affect all index writers and act as a default

View File

@ -17,6 +17,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<!-- Used to specify an alternate directory to hold all index data <!-- Used to specify an alternate directory to hold all index data
other than the default ./data under the Solr home. other than the default ./data under the Solr home.
If replication is in use, this should match the replication configuration. --> If replication is in use, this should match the replication configuration. -->

View File

@ -24,6 +24,7 @@
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<indexDefaults> <indexDefaults>
<useCompoundFile>false</useCompoundFile> <useCompoundFile>false</useCompoundFile>
<mergeFactor>10</mergeFactor> <mergeFactor>10</mergeFactor>

View File

@ -21,6 +21,7 @@
It is *not* a good example to work from. It is *not* a good example to work from.
--> -->
<config> <config>
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
<dataDir>${solr.solr.home}/data/${l10n}-${version}</dataDir> <dataDir>${solr.solr.home}/data/${l10n}-${version}</dataDir>