You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ho...@apache.org on 2017/06/05 20:51:30 UTC

[1/2] lucene-solr:jira/SOLR-10807: SOLR-10807: add an explicit trie fieldType back to any schema that needs it for the 'id' field.

Repository: lucene-solr
Updated Branches:
  refs/heads/jira/SOLR-10807 c76a79b5b -> fde06f34b


SOLR-10807: add an explicit trie fieldType back to any schema that needs it for the 'id' field.

these changes were made with the following quick & dirty script, followed by some manual cleanup of 2 schema files
that still use '<types/>' tags *and* use uniqueKey.

if ($_ =~ /name="id"/ and $_ =~ /type="[^"]*(int|float)[^"]*"/) {
    my $type = $1;
    my $class = ($type eq 'int') ? 'solr.TrieIntField' : 'solr.TrieFloatField';
    $_ =~ s/type="[^"]*"/type="nocommit_id_type"/;
    print qq{<fieldType name="nocommit_id_type" class="$class" indexed="true" stored="true" multiValued="false" />};
}


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/48d16b92
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/48d16b92
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/48d16b92

Branch: refs/heads/jira/SOLR-10807
Commit: 48d16b92734831543b68bb3e28aceb12a3936a70
Parents: c76a79b
Author: Chris Hostetter <ho...@apache.org>
Authored: Mon Jun 5 10:49:02 2017 -0700
Committer: Chris Hostetter <ho...@apache.org>
Committed: Mon Jun 5 10:49:02 2017 -0700

----------------------------------------------------------------------
 .../solr/collection1/conf/schema-icucollate-dv.xml                | 3 ++-
 .../analysis-extras/solr/collection1/conf/schema-icucollate.xml   | 3 ++-
 .../solr/collection1/conf/schema-icucollateoptions.xml            | 3 ++-
 .../src/test-files/solr/analysisconfs/analysis-err-schema.xml     | 3 ++-
 .../src/test-files/solr/collection1/conf/schema-binaryfield.xml   | 3 ++-
 .../solr/collection1/conf/schema-blockjoinfacetcomponent.xml      | 3 ++-
 solr/core/src/test-files/solr/collection1/conf/schema-bm25.xml    | 3 ++-
 .../src/test-files/solr/collection1/conf/schema-charfilters.xml   | 3 ++-
 .../src/test-files/solr/collection1/conf/schema-collate-dv.xml    | 3 ++-
 solr/core/src/test-files/solr/collection1/conf/schema-collate.xml | 3 ++-
 .../test-files/solr/collection1/conf/schema-copyfield-test.xml    | 3 ++-
 .../src/test-files/solr/collection1/conf/schema-custom-field.xml  | 3 ++-
 .../src/test-files/solr/collection1/conf/schema-customfield.xml   | 3 ++-
 solr/core/src/test-files/solr/collection1/conf/schema-dfi.xml     | 3 ++-
 solr/core/src/test-files/solr/collection1/conf/schema-dfr.xml     | 3 ++-
 .../solr/collection1/conf/schema-distributed-missing-sort.xml     | 3 ++-
 .../src/test-files/solr/collection1/conf/schema-docValues.xml     | 3 ++-
 .../test-files/solr/collection1/conf/schema-field-sort-values.xml | 3 ++-
 solr/core/src/test-files/solr/collection1/conf/schema-hash.xml    | 3 ++-
 solr/core/src/test-files/solr/collection1/conf/schema-ib.xml      | 3 ++-
 .../src/test-files/solr/collection1/conf/schema-lmdirichlet.xml   | 3 ++-
 .../test-files/solr/collection1/conf/schema-lmjelinekmercer.xml   | 3 ++-
 .../solr/collection1/conf/schema-not-required-unique-key.xml      | 3 ++-
 .../src/test-files/solr/collection1/conf/schema-phrasesuggest.xml | 3 ++-
 .../test-files/solr/collection1/conf/schema-postingshighlight.xml | 3 ++-
 .../src/test-files/solr/collection1/conf/schema-replication1.xml  | 3 ++-
 .../src/test-files/solr/collection1/conf/schema-replication2.xml  | 3 ++-
 .../test-files/solr/collection1/conf/schema-required-fields.xml   | 3 ++-
 .../core/src/test-files/solr/collection1/conf/schema-reversed.xml | 3 ++-
 .../solr/collection1/conf/schema-sim-default-override.xml         | 3 ++-
 solr/core/src/test-files/solr/collection1/conf/schema-sim.xml     | 3 ++-
 .../test-files/solr/collection1/conf/schema-simpleqpplugin.xml    | 3 ++-
 solr/core/src/test-files/solr/collection1/conf/schema-sorts.xml   | 3 ++-
 solr/core/src/test-files/solr/collection1/conf/schema-sql.xml     | 3 ++-
 .../src/test-files/solr/collection1/conf/schema-sweetspot.xml     | 3 ++-
 .../test-files/solr/collection1/conf/schema-synonym-tokenizer.xml | 3 ++-
 solr/core/src/test-files/solr/collection1/conf/schema-tfidf.xml   | 3 ++-
 .../test-files/solr/collection1/conf/schema-tokenizer-test.xml    | 3 ++-
 solr/core/src/test-files/solr/collection1/conf/schema-trie.xml    | 3 ++-
 .../test-files/solr/collection1/conf/schema-unifiedhighlight.xml  | 3 ++-
 solr/core/src/test-files/solr/collection1/conf/schema.xml         | 3 ++-
 solr/core/src/test-files/solr/collection1/conf/schema11.xml       | 3 ++-
 .../src/test-files/solr/configsets/configset-2/conf/schema.xml    | 3 ++-
 solr/core/src/test-files/solr/crazy-path-to-schema.xml            | 3 ++-
 .../solrj/solr/collection1/conf/schema-replication1.xml           | 3 ++-
 .../src/test-files/solrj/solr/collection1/conf/schema-sql.xml     | 3 ++-
 solr/solrj/src/test-files/solrj/solr/collection1/conf/schema.xml  | 3 ++-
 solr/solrj/src/test-files/solrj/solr/crazy-path-to-schema.xml     | 3 ++-
 48 files changed, 96 insertions(+), 48 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/contrib/analysis-extras/src/test-files/analysis-extras/solr/collection1/conf/schema-icucollate-dv.xml
----------------------------------------------------------------------
diff --git a/solr/contrib/analysis-extras/src/test-files/analysis-extras/solr/collection1/conf/schema-icucollate-dv.xml b/solr/contrib/analysis-extras/src/test-files/analysis-extras/solr/collection1/conf/schema-icucollate-dv.xml
index bd3cbe1..0c9ce6f 100644
--- a/solr/contrib/analysis-extras/src/test-files/analysis-extras/solr/collection1/conf/schema-icucollate-dv.xml
+++ b/solr/contrib/analysis-extras/src/test-files/analysis-extras/solr/collection1/conf/schema-icucollate-dv.xml
@@ -37,7 +37,8 @@
   <fieldType name="sort_da_t" class="solr.ICUCollationField" locale="da" strength="primary"/>
   <fieldType name="sort_custom_t" class="solr.ICUCollationField" custom="customrules.dat" strength="primary"/>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="text" type="text" indexed="true" stored="false"/>
   <field name="sort_ar" type="sort_ar_t" indexed="false" stored="false" multiValued="false" docValues="true"/>
   <field name="sort_de" type="sort_de_t" indexed="false" stored="false" multiValued="false" docValues="true"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/contrib/analysis-extras/src/test-files/analysis-extras/solr/collection1/conf/schema-icucollate.xml
----------------------------------------------------------------------
diff --git a/solr/contrib/analysis-extras/src/test-files/analysis-extras/solr/collection1/conf/schema-icucollate.xml b/solr/contrib/analysis-extras/src/test-files/analysis-extras/solr/collection1/conf/schema-icucollate.xml
index d746060..a586cdd 100644
--- a/solr/contrib/analysis-extras/src/test-files/analysis-extras/solr/collection1/conf/schema-icucollate.xml
+++ b/solr/contrib/analysis-extras/src/test-files/analysis-extras/solr/collection1/conf/schema-icucollate.xml
@@ -37,7 +37,8 @@
   <fieldType name="sort_da_t" class="solr.ICUCollationField" locale="da" strength="primary"/>
   <fieldType name="sort_custom_t" class="solr.ICUCollationField" custom="customrules.dat" strength="primary"/>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="text" type="text" indexed="true" stored="false"/>
   <field name="sort_ar" type="sort_ar_t" indexed="true" stored="false" multiValued="false"/>
   <field name="sort_de" type="sort_de_t" indexed="true" stored="false" multiValued="false"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/contrib/analysis-extras/src/test-files/analysis-extras/solr/collection1/conf/schema-icucollateoptions.xml
----------------------------------------------------------------------
diff --git a/solr/contrib/analysis-extras/src/test-files/analysis-extras/solr/collection1/conf/schema-icucollateoptions.xml b/solr/contrib/analysis-extras/src/test-files/analysis-extras/solr/collection1/conf/schema-icucollateoptions.xml
index 09bd11d..3fea24c 100644
--- a/solr/contrib/analysis-extras/src/test-files/analysis-extras/solr/collection1/conf/schema-icucollateoptions.xml
+++ b/solr/contrib/analysis-extras/src/test-files/analysis-extras/solr/collection1/conf/schema-icucollateoptions.xml
@@ -47,7 +47,8 @@
              locale="en" strength="tertiary" caseFirst="upper"/>
 
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="text" type="text" indexed="true" stored="false"/>
   <field name="sort_ignore_punctuation" type="sort_ignore_punctuation_t" indexed="true" stored="false"
          multiValued="false"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/analysisconfs/analysis-err-schema.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/analysisconfs/analysis-err-schema.xml b/solr/core/src/test-files/solr/analysisconfs/analysis-err-schema.xml
index e3f2317..e416d17 100644
--- a/solr/core/src/test-files/solr/analysisconfs/analysis-err-schema.xml
+++ b/solr/core/src/test-files/solr/analysisconfs/analysis-err-schema.xml
@@ -32,7 +32,8 @@
   </fieldType>
 
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false"/>
   <field name="text" type="text" indexed="true" stored="true"/>
   <field name="_version_" type="long"/>
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-binaryfield.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-binaryfield.xml b/solr/core/src/test-files/solr/collection1/conf/schema-binaryfield.xml
index 806c525..8ba1ff5 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-binaryfield.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-binaryfield.xml
@@ -67,7 +67,8 @@
   <fieldType name="date" class="${solr.tests.DateClassName:solr.DatePointField}" sortMissingLast="true"/>
 
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="true"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="true"/>
   <field name="data" type="binary" stored="true"/>
 
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-blockjoinfacetcomponent.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-blockjoinfacetcomponent.xml b/solr/core/src/test-files/solr/collection1/conf/schema-blockjoinfacetcomponent.xml
index f06ac6a..b09b6df 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-blockjoinfacetcomponent.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-blockjoinfacetcomponent.xml
@@ -22,7 +22,8 @@
   <fieldType name="long" class="${solr.tests.LongClassName:solr.LongPointField}" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
   <fieldtype name="string" class="solr.StrField" sortMissingLast="true"/>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="_version_" type="long" indexed="true" stored="true" multiValued="false"/>
   <field name="_root_" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-bm25.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-bm25.xml b/solr/core/src/test-files/solr/collection1/conf/schema-bm25.xml
index 8ccc390..48fdb8b 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-bm25.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-bm25.xml
@@ -37,7 +37,8 @@
   </fieldType>
 
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="text" type="text" indexed="true" stored="false"/>
   <field name="text_params" type="text_params" indexed="true" stored="false"/>
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-charfilters.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-charfilters.xml b/solr/core/src/test-files/solr/collection1/conf/schema-charfilters.xml
index 425adae..bdd98ff 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-charfilters.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-charfilters.xml
@@ -38,7 +38,8 @@
     </analyzer>
   </fieldType>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="true"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="true"/>
   <field name="content" type="text" indexed="true" stored="true"/>
   <field name="content2" type="text2" indexed="true" stored="true"/>
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-collate-dv.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-collate-dv.xml b/solr/core/src/test-files/solr/collection1/conf/schema-collate-dv.xml
index f8fcbb3..82da70d 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-collate-dv.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-collate-dv.xml
@@ -37,7 +37,8 @@
   <fieldType name="sort_da_t" class="solr.CollationField" language="da" strength="primary"/>
   <fieldType name="sort_custom_t" class="solr.CollationField" custom="customrules.dat" strength="primary"/>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="text" type="text" indexed="true" stored="false"/>
   <field name="sort_ar" type="sort_ar_t" indexed="false" stored="false" multiValued="false" docValues="true"/>
   <field name="sort_de" type="sort_de_t" indexed="false" stored="false" multiValued="false" docValues="true"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-collate.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-collate.xml b/solr/core/src/test-files/solr/collection1/conf/schema-collate.xml
index ed54b2b..df39743 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-collate.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-collate.xml
@@ -37,7 +37,8 @@
   <fieldType name="sort_da_t" class="solr.CollationField" language="da" strength="primary"/>
   <fieldType name="sort_custom_t" class="solr.CollationField" custom="customrules.dat" strength="primary"/>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="text" type="text" indexed="true" stored="false"/>
   <field name="sort_ar" type="sort_ar_t" indexed="true" stored="false" multiValued="false"/>
   <field name="sort_de" type="sort_de_t" indexed="true" stored="false" multiValued="false"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-copyfield-test.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-copyfield-test.xml b/solr/core/src/test-files/solr/collection1/conf/schema-copyfield-test.xml
index 974d120..1a990b5 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-copyfield-test.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-copyfield-test.xml
@@ -333,7 +333,8 @@
   </fieldType>
 
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="name" type="nametext" indexed="true" stored="true"/>
   <field name="text" type="text" indexed="true" stored="false"/>
   <field name="subject" type="text" indexed="true" stored="true"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-custom-field.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-custom-field.xml b/solr/core/src/test-files/solr/collection1/conf/schema-custom-field.xml
index 23197aa..ad27910 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-custom-field.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-custom-field.xml
@@ -26,7 +26,8 @@
     </analyzer>
   </fieldType>
   <fieldType class="org.apache.solr.schema.SortableBinaryField" name="sortable_binary"/>
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="_version_" type="long" indexed="true" stored="true" multiValued="false"/>
   <field name="signatureField" type="string" indexed="true" stored="false"/>
   <field name="text" type="text" indexed="true" stored="false"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-customfield.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-customfield.xml b/solr/core/src/test-files/solr/collection1/conf/schema-customfield.xml
index f7e2c22..ed060a7 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-customfield.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-customfield.xml
@@ -65,7 +65,8 @@
 
   <fieldType name="customtrieintfield" class="org.apache.solr.schema.TrieIntPrefixActsAsRangeQueryFieldType"/>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="true"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="true"/>
   <field name="intfield" type="int" indexed="true" stored="true"/>
   <field name="swap_foo_bar_in_prefix_query" type="customfield" indexed="true" stored="true" multiValued="true"/>
   <field name="int_prefix_as_range" type="customtrieintfield" indexed="true" stored="true"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-dfi.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-dfi.xml b/solr/core/src/test-files/solr/collection1/conf/schema-dfi.xml
index 3776963..eb102a9 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-dfi.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-dfi.xml
@@ -39,7 +39,8 @@
   </fieldType>
 
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="text" type="text" indexed="true" stored="false"/>
   <field name="text_params" type="text_params" indexed="true" stored="false"/>
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-dfr.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-dfr.xml b/solr/core/src/test-files/solr/collection1/conf/schema-dfr.xml
index e84e4ed..20f801a 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-dfr.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-dfr.xml
@@ -54,7 +54,8 @@
   </fieldType>
 
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="text" type="text" indexed="true" stored="false"/>
   <field name="text_params" type="text_params" indexed="true" stored="false"/>
   <field name="text_paramc" type="text_paramc" indexed="true" stored="false"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-distributed-missing-sort.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-distributed-missing-sort.xml b/solr/core/src/test-files/solr/collection1/conf/schema-distributed-missing-sort.xml
index 1bcaf49..e665af3 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-distributed-missing-sort.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-distributed-missing-sort.xml
@@ -45,7 +45,8 @@
   <fieldType name="string_ml" class="solr.StrField" sortMissingLast="true"/>
   <fieldType name="string_mf" class="solr.StrField" sortMissingFirst="true"/>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="_version_" type="long" indexed="true" stored="true" multiValued="false"/>
   <field name="signatureField" type="string_ml" indexed="true" stored="false"/>
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-docValues.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-docValues.xml b/solr/core/src/test-files/solr/collection1/conf/schema-docValues.xml
index d6525a2..6441c18 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-docValues.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-docValues.xml
@@ -53,7 +53,8 @@
   <fieldType name="uuid" class="solr.UUIDField"/>
 
 
-  <field name="id" type="int" required="true"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" required="true"/>
 
   <field name="floatdv" type="float" indexed="false" stored="false" docValues="true" default="1"/>
   <field name="intdv" type="int" indexed="false" stored="false" docValues="true" default="2"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-field-sort-values.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-field-sort-values.xml b/solr/core/src/test-files/solr/collection1/conf/schema-field-sort-values.xml
index 48227a8..bc18ab8 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-field-sort-values.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-field-sort-values.xml
@@ -26,7 +26,8 @@
     </analyzer>
   </fieldType>
   <fieldType class="org.apache.solr.schema.WrappedIntField" name="wrapped_int"/>
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="_version_" type="long" indexed="true" stored="true" multiValued="false"/>
   <field name="text" type="text" indexed="true" stored="false"/>
   <field name="payload" type="wrapped_int" indexed="false"

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-hash.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-hash.xml b/solr/core/src/test-files/solr/collection1/conf/schema-hash.xml
index 7e58f67..4928f6e 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-hash.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-hash.xml
@@ -436,7 +436,8 @@
   -->
 
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="signatureField" type="string" indexed="true" stored="false"/>
   <field name="uuid" type="uuid" stored="true"/>
   <field name="name" type="nametext" indexed="true" stored="true"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-ib.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-ib.xml b/solr/core/src/test-files/solr/collection1/conf/schema-ib.xml
index ee8fe69..3d950d5 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-ib.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-ib.xml
@@ -42,7 +42,8 @@
     </similarity>
   </fieldType>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="text" type="text" indexed="true" stored="false"/>
   <field name="text_params" type="text_params" indexed="true" stored="false"/>
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-lmdirichlet.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-lmdirichlet.xml b/solr/core/src/test-files/solr/collection1/conf/schema-lmdirichlet.xml
index 3edee0b0..e7a08dc 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-lmdirichlet.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-lmdirichlet.xml
@@ -35,7 +35,8 @@
     </similarity>
   </fieldType>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="text" type="text" indexed="true" stored="false"/>
   <field name="text_params" type="text_params" indexed="true" stored="false"/>
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-lmjelinekmercer.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-lmjelinekmercer.xml b/solr/core/src/test-files/solr/collection1/conf/schema-lmjelinekmercer.xml
index 4165ac6..9c81a91 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-lmjelinekmercer.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-lmjelinekmercer.xml
@@ -35,7 +35,8 @@
     </similarity>
   </fieldType>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="text" type="text" indexed="true" stored="false"/>
   <field name="text_params" type="text_params" indexed="true" stored="false"/>
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-not-required-unique-key.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-not-required-unique-key.xml b/solr/core/src/test-files/solr/collection1/conf/schema-not-required-unique-key.xml
index 14d1a8a..927ff9a 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-not-required-unique-key.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-not-required-unique-key.xml
@@ -31,7 +31,8 @@
     </analyzer>
   </fieldType>
 
-  <field name="id" type="int" multiValued="false" indexed="true" stored="true" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" multiValued="false" indexed="true" stored="true" required="false"/>
   <field name="subject" type="text" indexed="true" stored="true"/>
   <field name="signatureField" type="string" indexed="true" stored="false"/>
   <dynamicField name="*_sS" type="string" indexed="false" stored="true"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-phrasesuggest.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-phrasesuggest.xml b/solr/core/src/test-files/solr/collection1/conf/schema-phrasesuggest.xml
index 8165947..884dc22 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-phrasesuggest.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-phrasesuggest.xml
@@ -48,7 +48,8 @@
     </analyzer>
   </fieldType>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="text" type="text" indexed="true" stored="false"/>
   <field name="stext" type="text" indexed="true" stored="true"/>
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-postingshighlight.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-postingshighlight.xml b/solr/core/src/test-files/solr/collection1/conf/schema-postingshighlight.xml
index e230441..cc287dd 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-postingshighlight.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-postingshighlight.xml
@@ -37,7 +37,8 @@
     </analyzer>
   </fieldType>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="text" type="text_offsets" indexed="true" stored="true"/>
   <field name="text2" type="text" indexed="true" stored="true"/>
   <field name="text3" type="text_offsets" indexed="true" stored="true"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-replication1.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-replication1.xml b/solr/core/src/test-files/solr/collection1/conf/schema-replication1.xml
index 970268d..7ec0dea 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-replication1.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-replication1.xml
@@ -30,7 +30,8 @@
   <fieldType name="integer" class="${solr.tests.IntClassName:solr.IntPointField}" precisionStep="0"/>
   <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
 
-  <field name="id" type="integer" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="name" type="string" indexed="true" stored="true"/>
 
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-replication2.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-replication2.xml b/solr/core/src/test-files/solr/collection1/conf/schema-replication2.xml
index 9457222..c0f2610 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-replication2.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-replication2.xml
@@ -30,7 +30,8 @@
   <fieldType name="integer" class="${solr.tests.IntClassName:solr.IntPointField}" precisionStep="0"/>
   <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
 
-  <field name="id" type="integer" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="name" type="string" indexed="true" stored="true"/>
 
   <!--adding new field newname in replication test.-->

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-required-fields.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-required-fields.xml b/solr/core/src/test-files/solr/collection1/conf/schema-required-fields.xml
index 7893d0b..03da83f 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-required-fields.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-required-fields.xml
@@ -316,7 +316,8 @@
   </fieldType>
 
 
-  <field name="id" type="int" multiValued="false" indexed="true"
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" multiValued="false" indexed="true"
          stored="true"/> <!-- the uniqueKey is required by default -->
   <field name="name" type="nametext" indexed="true" stored="true" required="true"/>
   <field name="text" type="text" indexed="true" stored="false"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-reversed.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-reversed.xml b/solr/core/src/test-files/solr/collection1/conf/schema-reversed.xml
index 8ecbb66..8ed183f 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-reversed.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-reversed.xml
@@ -66,7 +66,8 @@
   </fieldType>
 
 
-  <field name="id" type="integer" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="one" type="srev" indexed="true" stored="false"/>
   <field name="two" type="rev" indexed="true" stored="false"/>
   <field name="three" type="text" indexed="true" stored="false"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-sim-default-override.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-sim-default-override.xml b/solr/core/src/test-files/solr/collection1/conf/schema-sim-default-override.xml
index 3e77b5d..618a4ba 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-sim-default-override.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-sim-default-override.xml
@@ -50,7 +50,8 @@
     </analyzer>
   </fieldType>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="sim1text" type="sim-explicit" indexed="true" stored="true"/>
   <field name="sim2text" type="sim-used-as-default-override" indexed="true" stored="true"/>
   <field name="sim3text" type="sim-none-get-default" indexed="true" stored="true"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-sim.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-sim.xml b/solr/core/src/test-files/solr/collection1/conf/schema-sim.xml
index 2cc5883..04e0e12 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-sim.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-sim.xml
@@ -46,7 +46,8 @@
     </analyzer>
   </fieldType>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="sim1text" type="sim1" indexed="true" stored="true"/>
   <field name="sim2text" type="sim2" indexed="true" stored="true"/>
   <field name="sim3text" type="sim3" indexed="true" stored="true"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-simpleqpplugin.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-simpleqpplugin.xml b/solr/core/src/test-files/solr/collection1/conf/schema-simpleqpplugin.xml
index bcbeb37..d4b1c51 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-simpleqpplugin.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-simpleqpplugin.xml
@@ -50,7 +50,8 @@
     </analyzer>
   </fieldType>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="text0" type="text" indexed="true" stored="true"/>
   <field name="text1" type="text" indexed="true" stored="true"/>
   <field name="text-keyword0" type="text-keyword" indexed="true" stored="true"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-sorts.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-sorts.xml b/solr/core/src/test-files/solr/collection1/conf/schema-sorts.xml
index 684d1d6..c9ed9ac 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-sorts.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-sorts.xml
@@ -25,7 +25,8 @@ NOTE: Tests expect every field in this schema to be sortable.
 <schema name="sortable" version="1.6">
   <uniqueKey>id</uniqueKey>
 
-  <field name="id" type="int"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type"/>
   <field name="_version_" type="long"/>
 
   <field name="str" type="str"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-sql.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-sql.xml b/solr/core/src/test-files/solr/collection1/conf/schema-sql.xml
index 011979e..5497a96 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-sql.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-sql.xml
@@ -436,7 +436,8 @@
   -->
 
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="signatureField" type="string" indexed="true" stored="false"/>
 
   <field name="s_multi" type="string" indexed="true" stored="true" docValues="true" multiValued="true"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-sweetspot.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-sweetspot.xml b/solr/core/src/test-files/solr/collection1/conf/schema-sweetspot.xml
index e4001d7..4540ca7 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-sweetspot.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-sweetspot.xml
@@ -59,7 +59,8 @@
     </similarity>
   </fieldType>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="text" type="text"/>
   <field name="text_baseline" type="text_baseline"/>
   <field name="text_hyperbolic" type="text_hyperbolic"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-synonym-tokenizer.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-synonym-tokenizer.xml b/solr/core/src/test-files/solr/collection1/conf/schema-synonym-tokenizer.xml
index ed97608..7730b33 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-synonym-tokenizer.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-synonym-tokenizer.xml
@@ -33,7 +33,8 @@
   </fieldType>
 
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="text" type="text_synonyms" indexed="true" stored="false"/>
 
   <uniqueKey>id</uniqueKey>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-tfidf.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-tfidf.xml b/solr/core/src/test-files/solr/collection1/conf/schema-tfidf.xml
index d801205..37f8067 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-tfidf.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-tfidf.xml
@@ -38,7 +38,8 @@
     </similarity>
   </fieldType>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <fieldType name="int" class="${solr.tests.IntClassName:solr.IntPointField}" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
   <uniqueKey>id</uniqueKey>
 </schema>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-tokenizer-test.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-tokenizer-test.xml b/solr/core/src/test-files/solr/collection1/conf/schema-tokenizer-test.xml
index bbbc9fd..d1b23e4 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-tokenizer-test.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-tokenizer-test.xml
@@ -127,7 +127,8 @@ more concise example.
     </analyzer>
   </fieldType>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="true"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="true"/>
 
   <field name="letter" type="letterfieldType" indexed="true" stored="true"/>
   <field name="lowerCase" type="lowerCasefieldType" indexed="true" stored="true"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-trie.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-trie.xml b/solr/core/src/test-files/solr/collection1/conf/schema-trie.xml
index 4445127..789cf55 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-trie.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-trie.xml
@@ -273,7 +273,8 @@
   -->
 
   <!-- for testing, a type that does a transform to see if it's correctly done everywhere -->
-  <field name="id" type="tfloat" indexed="true" stored="true" required="true"/>
+<fieldType name="nocommit_id_type" class="solr.TrieFloatField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" required="true"/>
   <field name="text" type="text" indexed="true" stored="false"/>
   <field name="signatureField" type="string" indexed="true" stored="false"/>
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema-unifiedhighlight.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-unifiedhighlight.xml b/solr/core/src/test-files/solr/collection1/conf/schema-unifiedhighlight.xml
index af11f08..10be4b5 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-unifiedhighlight.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-unifiedhighlight.xml
@@ -36,7 +36,8 @@
     </analyzer>
   </fieldType>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="text" type="text_offsets" indexed="true" stored="true"/>
   <field name="text2" type="text" indexed="true" stored="true"/>
   <field name="text3" type="text_offsets" indexed="true" stored="true"         large="true"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema.xml b/solr/core/src/test-files/solr/collection1/conf/schema.xml
index de7102a..f76e11a 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema.xml
@@ -497,7 +497,8 @@
   </fieldType>
   <fieldType name="severityType" class="solr.EnumField" enumsConfig="enumsConfig.xml" enumName="severity"/>
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="_root_" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
 
   <field name="signatureField" type="string" indexed="true" stored="false"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/collection1/conf/schema11.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema11.xml b/solr/core/src/test-files/solr/collection1/conf/schema11.xml
index 41152a5..80b0236 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema11.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema11.xml
@@ -320,7 +320,8 @@ valued. -->
    -->
 
    <!-- for testing, a type that does a transform to see if it's correctly done everywhere -->
-   <field name="id" type="float" indexed="true" stored="true" required="true" />
+<fieldType name="nocommit_id_type" class="solr.TrieFloatField" indexed="true" stored="true" multiValued="false" />
+   <field name="id" type="nocommit_id_type" indexed="true" stored="true" required="true" />
    <field name="text" type="text" indexed="true" stored="false" />
 
    <!-- Test a point field for distances -->

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/configsets/configset-2/conf/schema.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/configsets/configset-2/conf/schema.xml b/solr/core/src/test-files/solr/configsets/configset-2/conf/schema.xml
index 35df58e..2d776e7 100644
--- a/solr/core/src/test-files/solr/configsets/configset-2/conf/schema.xml
+++ b/solr/core/src/test-files/solr/configsets/configset-2/conf/schema.xml
@@ -18,7 +18,8 @@
 <schema name="minimal" version="1.1">
   <fieldType name="string" class="solr.StrField"/>
   <fieldType name="int" class="${solr.tests.IntClassName:solr.IntPointField}" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="_root_" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
   <dynamicField name="*" type="string" indexed="true" stored="true"/>
   <uniqueKey>id</uniqueKey>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/core/src/test-files/solr/crazy-path-to-schema.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/crazy-path-to-schema.xml b/solr/core/src/test-files/solr/crazy-path-to-schema.xml
index d1b9f93..82e5572 100644
--- a/solr/core/src/test-files/solr/crazy-path-to-schema.xml
+++ b/solr/core/src/test-files/solr/crazy-path-to-schema.xml
@@ -33,11 +33,12 @@
         <filter class="solr.PorterStemFilterFactory"/>
       </analyzer>
     </fieldType>
+  <fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
  </types>
 
 
  <fields>
-   <field name="id" type="int" indexed="true" stored="true" multiValued="false"/>
+   <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false"/>
    <field name="subject" type="text" indexed="true" stored="true"/>
  </fields>
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/solrj/src/test-files/solrj/solr/collection1/conf/schema-replication1.xml
----------------------------------------------------------------------
diff --git a/solr/solrj/src/test-files/solrj/solr/collection1/conf/schema-replication1.xml b/solr/solrj/src/test-files/solrj/solr/collection1/conf/schema-replication1.xml
index 970268d..7ec0dea 100644
--- a/solr/solrj/src/test-files/solrj/solr/collection1/conf/schema-replication1.xml
+++ b/solr/solrj/src/test-files/solrj/solr/collection1/conf/schema-replication1.xml
@@ -30,7 +30,8 @@
   <fieldType name="integer" class="${solr.tests.IntClassName:solr.IntPointField}" precisionStep="0"/>
   <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
 
-  <field name="id" type="integer" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="name" type="string" indexed="true" stored="true"/>
 
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/solrj/src/test-files/solrj/solr/collection1/conf/schema-sql.xml
----------------------------------------------------------------------
diff --git a/solr/solrj/src/test-files/solrj/solr/collection1/conf/schema-sql.xml b/solr/solrj/src/test-files/solrj/solr/collection1/conf/schema-sql.xml
index adaa3c8..a0996a5 100644
--- a/solr/solrj/src/test-files/solrj/solr/collection1/conf/schema-sql.xml
+++ b/solr/solrj/src/test-files/solrj/solr/collection1/conf/schema-sql.xml
@@ -436,7 +436,8 @@
   -->
 
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="signatureField" type="string" indexed="true" stored="false"/>
 
   <field name="s_multi" type="string" indexed="true" stored="true" docValues="true" multiValued="true"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/solrj/src/test-files/solrj/solr/collection1/conf/schema.xml
----------------------------------------------------------------------
diff --git a/solr/solrj/src/test-files/solrj/solr/collection1/conf/schema.xml b/solr/solrj/src/test-files/solrj/solr/collection1/conf/schema.xml
index 28d3461..efaf27c 100644
--- a/solr/solrj/src/test-files/solrj/solr/collection1/conf/schema.xml
+++ b/solr/solrj/src/test-files/solrj/solr/collection1/conf/schema.xml
@@ -411,7 +411,8 @@
   -->
 
 
-  <field name="id" type="int" indexed="true" stored="true" multiValued="false" required="false"/>
+<fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
   <field name="signatureField" type="string" indexed="true" stored="false"/>
   <field name="uuid" type="uuid" stored="true"/>
   <field name="name" type="nametext" indexed="true" stored="true"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/48d16b92/solr/solrj/src/test-files/solrj/solr/crazy-path-to-schema.xml
----------------------------------------------------------------------
diff --git a/solr/solrj/src/test-files/solrj/solr/crazy-path-to-schema.xml b/solr/solrj/src/test-files/solrj/solr/crazy-path-to-schema.xml
index 4813671..82b0430 100644
--- a/solr/solrj/src/test-files/solrj/solr/crazy-path-to-schema.xml
+++ b/solr/solrj/src/test-files/solrj/solr/crazy-path-to-schema.xml
@@ -38,11 +38,12 @@ that just finds leaf <fieldType> and <field> nodes and there's no reason to brea
         <filter class="solr.PorterStemFilterFactory"/>
       </analyzer>
     </fieldType>
+    <fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
  </types>
 
 
  <fields>  <!-- Intentionally left in. see comment above -->
-   <field name="id" type="int" indexed="true" stored="true" multiValued="false"/>
+   <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false"/>
    <field name="subject" type="text" indexed="true" stored="true"/>
  </fields>
 


[2/2] lucene-solr:jira/SOLR-10807: SOLR-10807: some small hacks to get past some obvious test problems

Posted by ho...@apache.org.
SOLR-10807: some small hacks to get past some obvious test problems


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/fde06f34
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/fde06f34
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/fde06f34

Branch: refs/heads/jira/SOLR-10807
Commit: fde06f34b7f9d0916a134b3efaa8780892ff8e39
Parents: 48d16b9
Author: Chris Hostetter <ho...@apache.org>
Authored: Mon Jun 5 11:45:30 2017 -0700
Committer: Chris Hostetter <ho...@apache.org>
Committed: Mon Jun 5 11:45:30 2017 -0700

----------------------------------------------------------------------
 .../apache/solr/schema/ExternalFileField.java   | 19 +++++++-------
 .../solr/collection1/conf/schema-sql.xml        |  2 +-
 .../apache/solr/schema/BadIndexSchemaTest.java  |  2 +-
 .../org/apache/solr/schema/IndexSchemaTest.java |  9 ++++---
 .../org/apache/solr/search/TestTrieFacet.java   | 26 +++++++++++---------
 .../apache/solr/cloud/MiniSolrCloudCluster.java |  4 +++
 6 files changed, 37 insertions(+), 25 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/fde06f34/solr/core/src/java/org/apache/solr/schema/ExternalFileField.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/schema/ExternalFileField.java b/solr/core/src/java/org/apache/solr/schema/ExternalFileField.java
index 03ec299..ab71411 100644
--- a/solr/core/src/java/org/apache/solr/schema/ExternalFileField.java
+++ b/solr/core/src/java/org/apache/solr/schema/ExternalFileField.java
@@ -69,15 +69,16 @@ public class ExternalFileField extends FieldType implements SchemaAware {
     // code (see getValueSource) gives you a FileFloatSource.
     String ftypeS = args.remove("valType");
 
-    // // nocommit: dead code. removing this should be in it's own jira
-    // 
-    // if (ftypeS != null) {
-    //   ftype = schema.getFieldTypes().get(ftypeS);
-    //   if (ftype != null && !(ftype instanceof TrieFloatField)) {
-    //     throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,
-    //         "Only float (TrieFloatField) is currently supported as external field type.  Got " + ftypeS);
-    //   }
-    // }
+    // // nocommit: dead code. removing this (or replacuing with warning) should be in it's own jira
+    // // for now maintain spirit of original error check but for points fields
+    if (ftypeS != null) {
+      ftype = schema.getFieldTypes().get(ftypeS);
+      if (ftype != null && (org.apache.solr.schema.NumberType.FLOAT != ftype.getNumberType())) {
+        throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,
+            "Only float based valType currently supported as external field type.  Got " + ftypeS);
+      }
+    }
+    // nocommit
     
     keyFieldName = args.remove("keyField");
     String defValS = args.remove("defVal");

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/fde06f34/solr/core/src/test-files/solr/collection1/conf/schema-sql.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema-sql.xml b/solr/core/src/test-files/solr/collection1/conf/schema-sql.xml
index 5497a96..dd7779d 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema-sql.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema-sql.xml
@@ -437,7 +437,7 @@
 
 
 <fieldType name="nocommit_id_type" class="solr.TrieIntField" indexed="true" stored="true" multiValued="false" />
-  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" required="false"/>
+  <field name="id" type="nocommit_id_type" indexed="true" stored="true" multiValued="false" docValues="true"/>
   <field name="signatureField" type="string" indexed="true" stored="false"/>
 
   <field name="s_multi" type="string" indexed="true" stored="true" docValues="true" multiValued="true"/>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/fde06f34/solr/core/src/test/org/apache/solr/schema/BadIndexSchemaTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/schema/BadIndexSchemaTest.java b/solr/core/src/test/org/apache/solr/schema/BadIndexSchemaTest.java
index 2d5adf9..dc0c67b 100644
--- a/solr/core/src/test/org/apache/solr/schema/BadIndexSchemaTest.java
+++ b/solr/core/src/test/org/apache/solr/schema/BadIndexSchemaTest.java
@@ -55,7 +55,7 @@ public class BadIndexSchemaTest extends AbstractBadConfigTestBase {
 
   public void testBadExternalFileField() throws Exception {
     doTest("bad-schema-external-filefield.xml",
-           "Only float (TrieFloatField) is currently supported as external field type.");
+           "Only float based valType currently supported as external field type.");
   }
 
   public void testUniqueKeyRules() throws Exception {

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/fde06f34/solr/core/src/test/org/apache/solr/schema/IndexSchemaTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/schema/IndexSchemaTest.java b/solr/core/src/test/org/apache/solr/schema/IndexSchemaTest.java
index 7abab58..521472a 100644
--- a/solr/core/src/test/org/apache/solr/schema/IndexSchemaTest.java
+++ b/solr/core/src/test/org/apache/solr/schema/IndexSchemaTest.java
@@ -100,14 +100,17 @@ public class IndexSchemaTest extends SolrTestCaseJ4 {
     String expectedDefinition = "<fieldtype name=\"tdatedv\" class=\""+getDateClass()+"\" " +
         "precisionStep=\"6\" docValues=\"true\" multiValued=\"true\"/>";
     FieldType tdatedv = schema.getFieldType("foo_tdtdvs");
+    assertEquals("Expecting a field type defined as " + expectedDefinition, 
+                 NumberType.DATE, tdatedv.getNumberType());
     assertTrue("Expecting a field type defined as " + expectedDefinition, 
-        tdatedv instanceof TrieDateField);
+               getDateClass().endsWith(tdatedv.getClass().getSimpleName()));
     assertTrue("Expecting a field type defined as " + expectedDefinition,
         tdatedv.hasProperty(FieldProperties.DOC_VALUES));
     assertTrue("Expecting a field type defined as " + expectedDefinition,
         tdatedv.isMultiValued());
-    assertEquals("Expecting a field type defined as " + expectedDefinition,
-        6, ((TrieDateField)tdatedv).getPrecisionStep());
+    // nocommit: keep or trash?
+    // assertEquals("Expecting a field type defined as " + expectedDefinition,
+    //     6, ((TrieDateField)tdatedv).getPrecisionStep());
   }
   
   

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/fde06f34/solr/core/src/test/org/apache/solr/search/TestTrieFacet.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/search/TestTrieFacet.java b/solr/core/src/test/org/apache/solr/search/TestTrieFacet.java
index 158965b..73aec1e 100644
--- a/solr/core/src/test/org/apache/solr/search/TestTrieFacet.java
+++ b/solr/core/src/test/org/apache/solr/search/TestTrieFacet.java
@@ -69,17 +69,21 @@ public class TestTrieFacet extends SolrTestCaseJ4 {
       SchemaField sf = h.getCore().getLatestSchema().getField(f);
       assertFalse("who changed the schema? test isn't valid: " + f, sf.multiValued());
     }
-    
-    for (String f : P0) {
-      SchemaField sf = h.getCore().getLatestSchema().getField(f);
-      assertEquals("who changed the schema? test isn't valid: " + f,
-                   0, assertCastFieldType(sf).getPrecisionStep());
-    }
-    for (String f : P8) {
-      SchemaField sf = h.getCore().getLatestSchema().getField(f);
-      assertEquals("who changed the schema? test isn't valid: " + f,
-                   8, assertCastFieldType(sf).getPrecisionStep());
-    }
+
+    // nocommit: brute force HACK to make test ignore it's own sanity checks to test Points fields for us...
+    //
+    // for (String f : P0) {
+    //   SchemaField sf = h.getCore().getLatestSchema().getField(f);
+    //   assertEquals("who changed the schema? test isn't valid: " + f,
+    //                0, assertCastFieldType(sf).getPrecisionStep());
+    // }
+    // for (String f : P8) {
+    //   SchemaField sf = h.getCore().getLatestSchema().getField(f);
+    //   assertEquals("who changed the schema? test isn't valid: " + f,
+    //                8, assertCastFieldType(sf).getPrecisionStep());
+    // }
+    //
+    // nocommit: END
 
     // we don't need a lot of docs -- at least one failure only had ~1000  
     NUM_DOCS = TestUtil.nextInt(random(), 200, 1500);

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/fde06f34/solr/test-framework/src/java/org/apache/solr/cloud/MiniSolrCloudCluster.java
----------------------------------------------------------------------
diff --git a/solr/test-framework/src/java/org/apache/solr/cloud/MiniSolrCloudCluster.java b/solr/test-framework/src/java/org/apache/solr/cloud/MiniSolrCloudCluster.java
index 0605281..f548043 100644
--- a/solr/test-framework/src/java/org/apache/solr/cloud/MiniSolrCloudCluster.java
+++ b/solr/test-framework/src/java/org/apache/solr/cloud/MiniSolrCloudCluster.java
@@ -211,6 +211,10 @@ public class MiniSolrCloudCluster {
    MiniSolrCloudCluster(int numServers, Path baseDir, String solrXml, JettyConfig jettyConfig,
       ZkTestServer zkTestServer, Optional<String> securityJson) throws Exception {
 
+     // nocommit: simplest quick & dirty HACK to work around tests that use MSCC w/o using SolrTestCaseJ4...
+     org.apache.solr.schema.PointField.TEST_HACK_IGNORE_USELESS_TRIEFIELD_ARGS = true;
+     
+     
     Objects.requireNonNull(securityJson);
     this.baseDir = Objects.requireNonNull(baseDir);
     this.jettyConfig = Objects.requireNonNull(jettyConfig);