Apache Solr open-source search software
LUCENE-7734: FieldType copy constructor widened to IndexableFieldType
David Smileyd2bf30d58fbf
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex a8f7ee48258..40409457994 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -117,6 +117,9 @@ API Changesinstead of once all shard responses are present. (Simon Willnauer,Mike McCandless)+* LUCENE-7734: FieldType's copy constructor was widened to accept any IndexableFieldType.+ (David Smiley)+New Features* LUCENE-7449: Add CROSSES relation support to RangeFieldQuery. (Nick Knize)diff --git a/lucene/core/src/java/org/apache/lucene/document/FieldType.java b/lucene/core/src/java/org/apache/lucene/document/FieldType.javaindex 6f206a49ca7..3c7d276e706 100644--- a/lucene/core/src/java/org/apache/lucene/document/FieldType.java+++ b/lucene/core/src/java/org/apache/lucene/document/FieldType.java@@ -44,7 +44,7 @@ public class FieldType implements IndexableFieldType {/*** Create a new mutable FieldType with all of the properties from <code>ref</code>*/- public FieldType(FieldType ref) {+ public FieldType(IndexableFieldType ref) {this.stored = ref.stored();this.tokenized = ref.tokenized();this.storeTermVectors = ref.storeTermVectors();@@ -54,8 +54,8 @@ public class FieldType implements IndexableFieldType {this.omitNorms = ref.omitNorms();this.indexOptions = ref.indexOptions();this.docValuesType = ref.docValuesType();- this.dimensionCount = ref.dimensionCount;- this.dimensionNumBytes = ref.dimensionNumBytes;+ this.dimensionCount = ref.pointDimensionCount();+ this.dimensionNumBytes = ref.pointNumBytes();// Do not copy frozen!}