mirror of
https://github.com/apache/lucene.git
synced 2025-03-01 13:59:12 +00:00
test cleanup -- remove the _version_ field from schema12.xml, and update the two tess that might care to use schema15.xml. Change is motivated by SOLR-3432 (we shouldn't be updating all 'old' configs when features are added, we need tests using older style configs to ensure we don't break stuff)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1333704 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d5eeb396a5
commit
b61381fd33
@ -530,10 +530,13 @@
|
||||
<field name="uniq3" type="string" indexed="true" stored="true"/>
|
||||
<field name="nouniq" type="string" indexed="true" stored="true" multiValued="true"/>
|
||||
|
||||
<!-- for versioning -->
|
||||
<field name="_version_" type="long" indexed="true" stored="true"/>
|
||||
|
||||
|
||||
<!--
|
||||
DO NOT INCLUDE _version_ in this schema file
|
||||
We explicitly want tests using this file to *NOT* have this field
|
||||
so we can verify that Solr behaves correctly w/o it in those sitautions
|
||||
-->
|
||||
<!-- <field name="_version_" type="long" indexed="true" stored="true"/> -->
|
||||
|
||||
<dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="false"/>
|
||||
|
||||
|
@ -55,7 +55,7 @@ public class TestRealTimeGet extends SolrTestCaseJ4 {
|
||||
|
||||
@BeforeClass
|
||||
public static void beforeClass() throws Exception {
|
||||
initCore("solrconfig-tlog.xml","schema12.xml");
|
||||
initCore("solrconfig-tlog.xml","schema15.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -52,7 +52,7 @@ public class TestRecovery extends SolrTestCaseJ4 {
|
||||
public static void beforeClass() throws Exception {
|
||||
savedFactory = System.getProperty("solr.DirectoryFactory");
|
||||
System.setProperty("solr.directoryFactory", "org.apache.solr.core.MockFSDirectoryFactory");
|
||||
initCore("solrconfig-tlog.xml","schema12.xml");
|
||||
initCore("solrconfig-tlog.xml","schema15.xml");
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
|
Loading…
x
Reference in New Issue
Block a user