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
This commit is contained in:
Christine Poerschke 2015-12-10 13:36:53 +00:00
parent 0f0b3ff8e5
commit d33ca97167
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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);