You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2012/02/20 17:17:18 UTC
svn commit: r1291343 -
/lucene/dev/trunk/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SearchWithSortTask.java
Author: rmuir
Date: Mon Feb 20 16:17:17 2012
New Revision: 1291343
URL: http://svn.apache.org/viewvc?rev=1291343&view=rev
Log:
don't uppercase int to İNT
Modified:
lucene/dev/trunk/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SearchWithSortTask.java
Modified: lucene/dev/trunk/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SearchWithSortTask.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SearchWithSortTask.java?rev=1291343&r1=1291342&r2=1291343&view=diff
==============================================================================
--- lucene/dev/trunk/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SearchWithSortTask.java (original)
+++ lucene/dev/trunk/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SearchWithSortTask.java Mon Feb 20 16:17:17 2012
@@ -16,6 +16,8 @@ package org.apache.lucene.benchmark.byTa
* limitations under the License.
*/
+import java.util.Locale;
+
import org.apache.lucene.benchmark.byTask.PerfRunData;
import org.apache.lucene.benchmark.byTask.feeds.QueryMaker;
import org.apache.lucene.search.Sort;
@@ -75,7 +77,7 @@ public class SearchWithSortTask extends
} else {
throw new RuntimeException("You must specify the sort type ie page:int,subject:string");
}
- sortField0 = new SortField(fieldName, SortField.Type.valueOf(typeString.toUpperCase()));
+ sortField0 = new SortField(fieldName, SortField.Type.valueOf(typeString.toUpperCase(Locale.ENGLISH)));
}
sortFields[upto++] = sortField0;
}