mirror of https://github.com/apache/lucene.git
test using a non-existing field as first sort key
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@168453 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
12a91b4395
commit
ffbdf0b882
|
@ -260,6 +260,11 @@ implements Serializable {
|
|||
sort.setSort ("float");
|
||||
assertMatches (full, queryF, sort, "ZJI");
|
||||
|
||||
// using a nonexisting field as first sort key shouldn't make a difference:
|
||||
sort.setSort (new SortField[] { new SortField ("nosuchfield", SortField.STRING),
|
||||
new SortField ("float") });
|
||||
assertMatches (full, queryF, sort, "ZJI");
|
||||
|
||||
sort.setSort ("float", true);
|
||||
assertMatches (full, queryF, sort, "IJZ");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue