Skip to content

Apache Lucene open-source search software

SOLR-8305: replace LatLonType.getValueSource's QParser use

Christine Poerschked33ca9716728
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index e8ae412310a..725ce527c8d 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -285,6 +285,8 @@ Other Changes
to explicitly use ClassicIndexSchemaFactory instead : <schemaFactory class="ClassicIndexSchemaFactory"/>
(Varun Thacker)
+* SOLR-8305: replace LatLonType.getValueSource's QParser use (Christine Poerschke)
+
================== 5.4.0 ==================
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release
diff --git a/solr/core/src/java/org/apache/solr/schema/LatLonType.java b/solr/core/src/java/org/apache/solr/schema/LatLonType.java
index 83bee0a4594..5887f6b2f02 100644
--- a/solr/core/src/java/org/apache/solr/schema/LatLonType.java
+++ b/solr/core/src/java/org/apache/solr/schema/LatLonType.java
@@ -219,7 +219,7 @@ public class LatLonType extends AbstractSubTypeFieldType implements SpatialQuery
public ValueSource getValueSource(SchemaField field, QParser parser) {
ArrayList<ValueSource> vs = new ArrayList<>(2);
for (int i = 0; i < 2; i++) {
- SchemaField sub = subField(field, i, parser.getReq().getSchema());
+ SchemaField sub = subField(field, i, schema);
vs.add(sub.getType().getValueSource(sub, parser));
}
return new LatLonValueSource(field, vs);