mirror of
https://github.com/apache/lucene.git
synced 2025-02-22 01:56:16 +00:00
fix off-by-one bug in getting field sort type
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@726213 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
812abd20dd
commit
1f33d7c66a
@ -50,7 +50,7 @@ public class SearchWithSortTask extends ReadTask {
|
||||
String typeString;
|
||||
if (index != -1) {
|
||||
fieldName = field.substring(0, index);
|
||||
typeString = field.substring(index, field.length());
|
||||
typeString = field.substring(1+index, field.length());
|
||||
} else {
|
||||
typeString = "auto";
|
||||
fieldName = field;
|
||||
|
Loading…
x
Reference in New Issue
Block a user