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:
Michael McCandless 2008-12-13 14:43:32 +00:00
parent 812abd20dd
commit 1f33d7c66a
1 changed files with 1 additions and 1 deletions

View File

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