From d33ca97167288a829a811f88c3ade5e902bf06f8 Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Thu, 10 Dec 2015 13:36:53 +0000 Subject: [PATCH] SOLR-8305: replace LatLonType.getValueSource's QParser use git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1719080 13f79535-47bb-0310-9956-ffa450edef68 --- solr/CHANGES.txt | 2 ++ solr/core/src/java/org/apache/solr/schema/LatLonType.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 : (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 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);