Index: FieldSortedHitQueue.java
===================================================================
--- FieldSortedHitQueue.java (revision 280445)
+++ FieldSortedHitQueue.java (working copy)
@@ -29,6 +29,7 @@
/**
* Expert: A hit queue for sorting by hits by terms in more than one field.
* Uses FieldCache.DEFAULT for maintaining internal term lookup tables.
+ * Now public to facilitate sorting with the expert query API.
*
*
Created: Dec 8, 2003 12:56:03 PM * @@ -38,7 +39,7 @@ * @see Searcher#search(Query,Filter,int,Sort) * @see FieldCache */ -class FieldSortedHitQueue +public class FieldSortedHitQueue extends PriorityQueue { /** @@ -48,7 +49,7 @@ * @param size The number of hits to retain. Must be greater than zero. * @throws IOException */ - FieldSortedHitQueue (IndexReader reader, SortField[] fields, int size) + public FieldSortedHitQueue (IndexReader reader, SortField[] fields, int size) throws IOException { final int n = fields.length; comparators = new ScoreDocComparator[n];