| Index: contrib/benchmark/conf/sort-standard.alg |
| =================================================================== |
| --- contrib/benchmark/conf/sort-standard.alg (revision 794093) |
| +++ contrib/benchmark/conf/sort-standard.alg (working copy) |
| @@ -57,7 +57,7 @@ |
| { "TestSortSpeed" |
| OpenReader |
| { "LoadFieldCacheAndSearch" SearchWithSort(sort_field:int) > : 1 |
| - { "SearchWithSort" SearchWithSort(sort_field) > : 5000 |
| + { "SearchWithSort" SearchWithSort(sort_field:int) > : 5000 |
| CloseReader |
| |
| } |
| Index: contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SearchWithSortTask.java |
| =================================================================== |
| --- contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SearchWithSortTask.java (revision 794093) |
| +++ contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SearchWithSortTask.java (working copy) |
| @@ -43,7 +43,7 @@ |
| * If nomaxscore is present, then we turn off maxScore tracking |
| * in {@link org.apache.lucene.search.TopFieldCollector}. |
| * |
| - * name,byline:int,subject:auto |
| + * name:string,page:int,subject:string |
| * |
| */ |
| public void setParams(String sortField) { |
| @@ -70,8 +70,7 @@ |
| fieldName = field.substring(0, index); |
| typeString = field.substring(1+index, field.length()); |
| } else { |
| - typeString = "auto"; |
| - fieldName = field; |
| + throw new RuntimeException("You must specify the sort type ie page:int,subject:string"); |
| } |
| int type = getType(typeString); |
| sortField0 = new SortField(fieldName, type); |
| |