lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r168453 - /lucene/java/trunk/src/test/org/apache/lucene/search/TestSort.java
Date Thu, 05 May 2005 22:41:44 GMT
Author: dnaber
Date: Thu May  5 15:41:44 2005
New Revision: 168453

URL: http://svn.apache.org/viewcvs?rev=168453&view=rev
Log:
test using a non-existing field as first sort key

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/search/TestSort.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/TestSort.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/test/org/apache/lucene/search/TestSort.java?rev=168453&r1=168452&r2=168453&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/TestSort.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/TestSort.java Thu May  5 15:41:44
2005
@@ -260,6 +260,11 @@
 		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");
 	}



Mime
View raw message