mirror of
https://github.com/apache/lucene.git
synced 2025-03-04 07:19:18 +00:00
SOLR-1779: fix parsing for more than 2 dims
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@911531 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4cd6455a04
commit
06e20d9795
@ -188,6 +188,8 @@ Bug Fixes
|
||||
* SOLR-1777: fieldTypes with sortMissingLast=true or sortMissingFirst=true can
|
||||
result in incorrectly sorted results. (yonik)
|
||||
|
||||
* SOLR-1779: Fix parsing of points with more than 2 dimensions (gsingers)
|
||||
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
@ -140,7 +140,7 @@ public class DistanceUtils {
|
||||
while (start < end && externalVal.charAt(start) == ' ') start++;
|
||||
while (end > start && externalVal.charAt(end - 1) == ' ') end--;
|
||||
out[i] = externalVal.substring(start, end);
|
||||
start = idx + 1;
|
||||
start = end + 1;
|
||||
end = externalVal.indexOf(',', start);
|
||||
if (end == -1) {
|
||||
end = externalVal.length();
|
||||
@ -180,7 +180,7 @@ public class DistanceUtils {
|
||||
while (start < end && externalVal.charAt(start) == ' ') start++;
|
||||
while (end > start && externalVal.charAt(end - 1) == ' ') end--;
|
||||
out[i] = Double.parseDouble(externalVal.substring(start, end));
|
||||
start = idx + 1;
|
||||
start = end + 1;
|
||||
end = externalVal.indexOf(',', start);
|
||||
if (end == -1) {
|
||||
end = externalVal.length();
|
||||
|
Loading…
x
Reference in New Issue
Block a user