## Uses of Class
org.apache.lucene.search.Sort

- Packages that use Sort
  Package | Description
  --- | ---
  org.apache.lucene.benchmark.byTask.tasks | Extendable benchmark tasks.
  org.apache.lucene.search | Code to search indices.

- - ### Uses of Sort in org.apache.lucene.benchmark.byTask.tasks

    Methods in org.apache.lucene.benchmark.byTask.tasks that return Sort
    Modifier and Type | Method and Description
    --- | ---
    `protected Sort` | ReadTask.`getSort()`
    `Sort` | SearchWithSortTask.`getSort()`

  - ### Uses of Sort in org.apache.lucene.search

    Fields in org.apache.lucene.search declared as Sort
    Modifier and Type | Field and Description
    --- | ---
    `static Sort` | Sort.`INDEXORDER` Represents sorting by index order.
    `static Sort` | Sort.`RELEVANCE` Represents sorting by computed relevance.

    Methods in org.apache.lucene.search with parameters of type Sort
    Modifier and Type | Method and Description
    --- | ---
    `static TopFieldCollector` | TopFieldCollector.`create(Sort sort, int numHits, boolean fillFields, boolean trackDocScores, boolean trackMaxScore, boolean docsScoredInOrder)` Creates a new `TopFieldCollector` from the given arguments.
    `TopFieldDocs` | Searcher.`search(Query query, Filter filter, int n, Sort sort)` Search implementation with arbitrary sorting.
    `Hits` | Searcher.`search(Query query, Filter filter, Sort sort)` Deprecated. Hits will be removed in Lucene 3.0. Use `Searcher.search(Query, Filter, int, Sort)` instead.
    `Hits` | Searcher.`search(Query query, Sort sort)` Deprecated. Hits will be removed in Lucene 3.0. Use `Searcher.search(Query, Filter, int, Sort)` instead.
    `TopFieldDocs` | RemoteSearchable.`search(Weight weight, Filter filter, int n, Sort sort)`
    `abstract TopFieldDocs` | Searcher.`search(Weight weight, Filter filter, int n, Sort sort)`
    `TopFieldDocs` | MultiSearcher.`search(Weight weight, Filter filter, int n, Sort sort)`
    `TopFieldDocs` | IndexSearcher.`search(Weight weight, Filter filter, int nDocs, Sort sort)`
    `TopFieldDocs` | Searchable.`search(Weight weight, Filter filter, int n, Sort sort)` Expert: Low-level search implementation with arbitrary sorting.
    `TopFieldDocs` | ParallelMultiSearcher.`search(Weight weight, Filter filter, int nDocs, Sort sort)` A search implementation allowing sorting which spans a new thread for each Searchable, waits for each search to complete and merges the results back together.
    `TopFieldDocs` | IndexSearcher.`search(Weight weight, Filter filter, int nDocs, Sort sort, boolean fillFields)` Just like `IndexSearcher.search(Weight, Filter, int, Sort)`, but you choose whether or not the fields in the returned `FieldDoc` instances should be set by specifying fillFields.

    Constructors in org.apache.lucene.search with parameters of type Sort
    Constructor and Description
    `TopFieldDocCollector(IndexReader reader, Sort sort, int numHits)` Deprecated. Construct to collect a given number of hits.

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.