Apache Solr open-source search software
SOLR-8525: fix a few places that were failing to pass dimensional values settings when copying a FieldInfo
Michael McCandless5e3f72645c70
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex b0c6bd1ac13..d1ce0ddfd19 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -140,6 +140,10 @@ Bug Fixes* SOLR-8485: SelectStream now properly handles non-lowercase and/or quoted select field names (Dennis Gove)+* SOLR-8525: Fix a few places that were failing to pass dimensional+ values settings when copying a FieldInfo (Ishan Chattopadhyaya via+ Mike McCandless)+Optimizations----------------------* SOLR-7876: Speed up queries and operations that use many terms when timeAllowed has not beendiff --git a/solr/core/src/java/org/apache/solr/handler/component/ExpandComponent.java b/solr/core/src/java/org/apache/solr/handler/component/ExpandComponent.javaindex 2eeaacc7ec2..58ea6cccfe8 100644--- a/solr/core/src/java/org/apache/solr/handler/component/ExpandComponent.java+++ b/solr/core/src/java/org/apache/solr/handler/component/ExpandComponent.java@@ -741,7 +741,8 @@ public class ExpandComponent extends SearchComponent implements PluginInfoInitiaDocValuesType.NONE,fieldInfo.getDocValuesGen(),fieldInfo.attributes(),- 0, 0);+ fieldInfo.getDimensionCount(),+ fieldInfo.getDimensionNumBytes());newInfos.add(f);} else {diff --git a/solr/core/src/java/org/apache/solr/search/Insanity.java b/solr/core/src/java/org/apache/solr/search/Insanity.javaindex ea4e1451bf1..6043aa1850a 100644--- a/solr/core/src/java/org/apache/solr/search/Insanity.java+++ b/solr/core/src/java/org/apache/solr/search/Insanity.java@@ -67,7 +67,7 @@ public class Insanity {if (fi.name.equals(insaneField)) {filteredInfos.add(new FieldInfo(fi.name, fi.number, fi.hasVectors(), fi.omitsNorms(),fi.hasPayloads(), fi.getIndexOptions(), DocValuesType.NONE, -1, Collections.emptyMap(),- 0, 0));+ fi.getDimensionCount(), fi.getDimensionNumBytes()));} else {filteredInfos.add(fi);}