mirror of
https://github.com/apache/lucene.git
synced 2025-03-06 00:09:28 +00:00
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");
|
sort.setSort ("float");
|
||||||
assertMatches (full, queryF, sort, "ZJI");
|
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);
|
sort.setSort ("float", true);
|
||||||
assertMatches (full, queryF, sort, "IJZ");
|
assertMatches (full, queryF, sort, "IJZ");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user