lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r726213 - /lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SearchWithSortTask.java
Date Sat, 13 Dec 2008 14:43:32 GMT
Author: mikemccand
Date: Sat Dec 13 06:43:32 2008
New Revision: 726213

URL: http://svn.apache.org/viewvc?rev=726213&view=rev
Log:
fix off-by-one bug in getting field sort type

Modified:
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SearchWithSortTask.java

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SearchWithSortTask.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SearchWithSortTask.java?rev=726213&r1=726212&r2=726213&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SearchWithSortTask.java
(original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SearchWithSortTask.java
Sat Dec 13 06:43:32 2008
@@ -50,7 +50,7 @@
       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;



Mime
View raw message