/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/ |
H A D | SortSpec.java | 29 Sort sort; field in class:SortSpec 33 public SortSpec(Sort sort, int num) { argument 34 this(sort,0,num); 37 public SortSpec(Sort sort, int offset, int num) { argument 38 this.sort=sort; 45 sort = s; 48 public static boolean includesScore(Sort sort) { argument 49 if (sort==null) return true; 50 for (SortField sf : sort [all...] |
H A D | QueryResultKey.java | 26 /** A hash key encapsulating a query, a list of filters, and a sort 31 final Sort sort; field in class:QueryResultKey 41 public QueryResultKey(Query query, List<Query> filters, Sort sort, int nc_flags) throws IOException { argument 43 this.sort = sort; 51 sfields = (this.sort !=null) ? this.sort.getSort() : defaultSort;
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/ |
H A D | TestSort.java | 78 private Sort sort; field in class:TestSort 86 // the contents field is used to search and sort by relevance 87 // the int field to sort by int 88 // the float field to sort by float 89 // the string field to sort by string 115 // the sort order of Ø versus U depends on the version of the rules being used 241 sort = new Sort(); 261 sort = new Sort(); 262 assertMatches (full, queryX, sort, "ACEGI"); 263 assertMatches (full, queryY, sort, "BDFH [all...] |
H A D | TestCustomSearcherSort.java | 59 // sort field 89 // define the sort criteria 103 // define the sort criteria 118 // define the sort criteria 129 private void matchHits(Searcher searcher, Sort sort) throws IOException { argument 142 // now make a query using the sort criteria 144 sort).scoreDocs; 223 public TopFieldDocs search(Query query, Filter filter, int nDocs, Sort sort) argument 229 return super.search(bq, filter, nDocs, sort);
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/ |
H A D | TestSort.java | 72 private Sort sort; field in class:TestSort 80 // the contents field is used to search and sort by relevance 81 // the int field to sort by int 82 // the float field to sort by float 83 // the string field to sort by string 109 // the sort order of Ø versus U depends on the version of the rules being used 236 sort = new Sort(); 256 sort = new Sort(); 257 assertMatches (full, queryX, sort, "ACEGI"); 258 assertMatches (full, queryY, sort, "BDFH [all...] |
H A D | TestCustomSearcherSort.java | 59 // sort field 89 // define the sort criteria 103 // define the sort criteria 118 // define the sort criteria 129 private void matchHits(Searcher searcher, Sort sort) throws IOException { argument 142 // now make a query using the sort criteria 144 sort).scoreDocs; 223 public TopFieldDocs search(Query query, Filter filter, int nDocs, Sort sort) argument 229 return super.search(bq, filter, nDocs, sort);
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/util/ |
H A D | PrimUtils.java | 34 * TODO: is this an unstable sort? 36 public static void sort(int start, int end, int[] array, IntComparator comparator) { method in class:PrimUtils 37 // This code was copied from Apache Harmony's Arrays.sort(double[]) and modified 111 sort(start, start + length, array, comparator); 114 sort(end - length, end, array, comparator);
|
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/util/collections/ |
H A D | IntArray.java | 41 * A flag which indicates whether a sort should occur of the array is 47 * Construct a default IntArray, size 0 and surly a sort should not occur. 86 sort(); 87 other.sort(); 175 sort(); 176 array.sort(); 191 public void sort() { method in class:IntArray 194 Arrays.sort(data, 0, size);
|
/lucene-3.6.0/lucene/contrib/remote/src/java/org/apache/lucene/search/ |
H A D | RemoteSearchable.java | 77 public TopFieldDocs search(Weight weight, Filter filter, int n, Sort sort) argument 79 return local.search (weight, filter, n, sort);
|
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/ |
H A D | BytesRefList.java | 127 private int[] sort(final Comparator<BytesRef> comp) { method in class:BytesRefList 188 final int[] ords = comp == null ? null : sort(comp);
|
H A D | SortedTermFreqIteratorWrapper.java | 57 this.reader = sort(compareRawBytes ? comparator : new BytesOnlyComparator(this.comparator)); 94 private Sort.ByteSequencesReader sort(Comparator<BytesRef> comparator) throws IOException { method in class:SortedTermFreqIteratorWrapper 111 new Sort(comparator).sort(tempInput, tempSorted);
|
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/fst/ |
H A D | ExternalRefSorter.java | 34 private final Sort sort; field in class:ExternalRefSorter 40 * Will buffer all sequences to a temporary file and then sort (all on-disk). 42 public ExternalRefSorter(Sort sort) throws IOException { argument 43 this.sort = sort; 61 sort.sort(input, sorted); 68 sort.getComparator()); 138 return sort.getComparator();
|
/lucene-3.6.0/lucene/contrib/spellchecker/src/test/org/apache/lucene/search/suggest/fst/ |
H A D | TestSort.java | 111 private SortInfo checkSort(Sort sort, byte[][] data) throws IOException { argument 114 Arrays.sort(data, unsignedByteOrderComparator); 118 SortInfo sortInfo = sort.sort(unsorted, sorted);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/ |
H A D | Searchable.java | 37 * Queries, filters and sort criteria are designed to be compact so that they 159 * <code>sort</code>. 166 TopFieldDocs search(Weight weight, Filter filter, int n, Sort sort) argument
|
H A D | TopDocs.java | 126 public MergeSortQueue(Sort sort, TopDocs[] shardHits) throws IOException { argument 142 throw new IllegalArgumentException("shard " + shardIDX + " did not set sort field values (FieldDoc.fields is null); you must pass fillFields=true to IndexSearcher.search on each shard"); 148 final SortField[] sortFields = sort.getSort(); 198 * the same Sort, and sort field values must have been 203 * <p>Pass sort=null to merge sort by score descending. 206 public static TopDocs merge(Sort sort, int topN, TopDocs[] shardHits) throws IOException { argument 209 if (sort == null) { 212 queue = new MergeSortQueue(sort, shardHits); 256 if (sort [all...] |
H A D | ParallelMultiSearcher.java | 127 public TopFieldDocs search(Weight weight, Filter filter, int nDocs, Sort sort) throws IOException { argument 128 if (sort == null) throw new NullPointerException(); 135 new MultiSearcherCallableWithSort(lock, searchables[i], weight, filter, nDocs, hq, sort, i, starts));
|
H A D | Searcher.java | 43 * <code>sort</code>. 52 Sort sort) throws IOException { 53 return search(createNormalizedWeight(query), filter, n, sort); 60 * @param sort The {@link org.apache.lucene.search.Sort} object 65 Sort sort) throws IOException { 66 return search(createNormalizedWeight(query), null, n, sort); 209 abstract public TopFieldDocs search(Weight weight, Filter filter, int n, Sort sort) throws IOException; argument 51 search(Query query, Filter filter, int n, Sort sort) argument 64 search(Query query, int n, Sort sort) argument
|
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ |
H A D | SearchWithSortTask.java | 25 * Does sort search on specified field. 32 private Sort sort; field in class:SearchWithSortTask 76 throw new RuntimeException("You must specify the sort type ie page:int,subject:string"); 89 this.sort = new Sort(sortFields); 111 throw new RuntimeException("Unrecognized sort field type " + typeString); 158 if (sort == null) { 159 throw new IllegalStateException("No sort field was set"); 161 return sort;
|
/lucene-3.6.0/lucene/contrib/grouping/src/test/org/apache/lucene/search/grouping/ |
H A D | TermAllGroupHeadsCollectorTest.java | 122 // STRING sort type triggers different implementation 288 Arrays.sort(expectedGroupHeads); 289 Arrays.sort(actualGroupHeads); 401 Collections.sort(docs, getComparator(docSort, sortByScoreOnly, fieldIdToDocID)); 433 private Comparator<GroupDoc> getComparator(Sort sort, final boolean sortByScoreOnly, final int[] fieldIdToDocID) { argument 434 final SortField[] sortFields = sort.getSort(); 461 // Our sort always fully tie breaks:
|
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/analysis/ |
H A D | CollationTestBase.java | 177 // sort differently depending on locale) 243 Sort sort = new Sort(); 247 sort.setSort(new SortField("US", SortField.STRING)); 248 assertMatches(searcher, queryY, sort, usResult); 250 sort.setSort(new SortField("France", SortField.STRING)); 251 assertMatches(searcher, queryX, sort, frResult); 253 sort.setSort(new SortField("Sweden", SortField.STRING)); 254 assertMatches(searcher, queryY, sort, svResult); 256 sort.setSort(new SortField("Denmark", SortField.STRING)); 257 assertMatches(searcher, queryY, sort, dkResul 265 assertMatches(Searcher searcher, Query query, Sort sort, String expectedResult) argument [all...] |
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/analysis/ |
H A D | CollationTestBase.java | 170 // sort differently depending on locale) 236 Sort sort = new Sort(); 240 sort.setSort(new SortField("US", SortField.STRING)); 241 assertMatches(searcher, queryY, sort, usResult); 243 sort.setSort(new SortField("France", SortField.STRING)); 244 assertMatches(searcher, queryX, sort, frResult); 246 sort.setSort(new SortField("Sweden", SortField.STRING)); 247 assertMatches(searcher, queryY, sort, svResult); 249 sort.setSort(new SortField("Denmark", SortField.STRING)); 250 assertMatches(searcher, queryY, sort, dkResul 257 assertMatches(Searcher searcher, Query query, Sort sort, String expectedResult) argument [all...] |
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/grouping/distributed/command/ |
H A D | QueryCommand.java | 40 private Sort sort; field in class:QueryCommand.Builder 47 public Builder setSort(Sort sort) { argument 48 this.sort = sort; 99 if (sort == null || query == null || docSet == null || docsToCollect == null) { 103 return new QueryCommand(sort, query, docsToCollect, needScores, docSet, queryString); 108 private final Sort sort; field in class:QueryCommand 118 private QueryCommand(Sort sort, Query query, int docsToCollect, boolean needScores, DocSet docSet, String queryString) { argument 119 this.sort = sort; [all...] |
/lucene-3.6.0/lucene/contrib/grouping/src/java/org/apache/lucene/search/grouping/ |
H A D | TermAllGroupHeadsCollector.java | 54 * @param sortWithinGroup The sort within each group 67 * @param sortWithinGroup The sort within each group 97 // Returns when a sort field needs the general impl. 104 // A general impl that works for any group sort. 167 private GroupHead(String groupValue, Sort sort, int doc) throws IOException { argument 169 final SortField[] sortFields = sort.getSort(); 310 // The current segment doesn't contain the sort value we encountered before. Therefore the ord is negative. 434 // The current segment doesn't contain the sort value we encountered before. Therefore the ord is negative.
|
/lucene-3.6.0/lucene/contrib/join/src/java/org/apache/lucene/search/join/ |
H A D | ToParentBlockJoinCollector.java | 91 private final Sort sort; field in class:ToParentBlockJoinCollector 114 /* Creates a ToParentBlockJoinCollector. The provided sort must 118 public ToParentBlockJoinCollector(Sort sort, int numParentHits, boolean trackScores, boolean trackMaxScore) throws IOException { argument 119 // TODO: allow null sort to be specialized to relevance 121 this.sort = sort; 125 queue = FieldValueHitQueue.create(sort.getSort(), numParentHits); 427 // unsorted; we now sort them: 432 throw new IllegalArgumentException("cannot sort by relevance within group: trackScores=false"); 473 return new TopGroups<Integer>(new TopGroups<Integer>(sort [all...] |
/lucene-3.6.0/lucene/contrib/remote/src/test/org/apache/lucene/search/ |
H A D | TestRemoteSort.java | 52 private Sort sort; field in class:TestRemoteSort 56 // the contents field is used to search and sort by relevance 57 // the int field to sort by int 58 // the float field to sort by float 59 // the string field to sort by string 156 sort = new Sort(); 234 sort = new Sort(); 235 assertSameValues (scoresX, getScores (remote.search (queryX, null, 1000, sort).scoreDocs, remote)); 236 assertSameValues (scoresY, getScores (remote.search (queryY, null, 1000, sort).scoreDocs, remote)); 237 assertSameValues (scoresA, getScores (remote.search (queryA, null, 1000, sort) 346 assertMatches(Searcher searcher, Query query, Sort sort, String expectedResult) argument [all...] |