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

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

- - ### 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 that return Sort
    Modifier and Type | Method and Description
    --- | ---
    `Sort` | Sort.`rewrite(IndexSearcher searcher)` Rewrites the SortFields in this Sort, returning a new Sort if any of the fields changes during their rewriting.

    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)` Creates a new `TopFieldCollector` from the given arguments.
    `static TopFieldCollector` | TopFieldCollector.`create(Sort sort, int numHits, FieldDoc after, boolean fillFields, boolean trackDocScores, boolean trackMaxScore)` Creates a new `TopFieldCollector` from the given arguments.
    `static TopFieldDocs` | TopDocs.`merge(Sort sort, int start, int topN, TopFieldDocs[] shardHits)` Same as `TopDocs.merge(Sort, int, TopFieldDocs[])` but also ignores the top `start` top docs.
    `static TopFieldDocs` | TopDocs.`merge(Sort sort, int topN, TopFieldDocs[] shardHits)` Returns a new TopFieldDocs, containing topN results across the provided TopFieldDocs, sorting by the specified `Sort`.
    `TopFieldDocs` | IndexSearcher.`search(Query query, Filter filter, int n, Sort sort)` Deprecated. Use `boolean queries` with `BooleanClause.Occur.FILTER` clauses instead
    `TopFieldDocs` | IndexSearcher.`search(Query query, Filter filter, int n, Sort sort, boolean doDocScores, boolean doMaxScore)` Deprecated. Use `boolean queries` with `BooleanClause.Occur.FILTER` clauses instead
    `TopFieldDocs` | IndexSearcher.`search(Query query, int n, Sort sort)` Search implementation with arbitrary sorting and no filter.
    `TopFieldDocs` | IndexSearcher.`search(Query query, int n, Sort sort, boolean doDocScores, boolean doMaxScore)` Search implementation with arbitrary sorting, plus control over whether hit scores and max score should be computed.
    `TopFieldDocs` | IndexSearcher.`searchAfter(ScoreDoc after, Query query, Filter filter, int n, Sort sort)` Deprecated. Use `boolean queries` with `BooleanClause.Occur.FILTER` clauses instead
    `TopFieldDocs` | IndexSearcher.`searchAfter(ScoreDoc after, Query query, Filter filter, int numHits, Sort sort, boolean doDocScores, boolean doMaxScore)` Deprecated. Use `boolean queries` with `BooleanClause.Occur.FILTER` clauses instead
    `TopDocs` | IndexSearcher.`searchAfter(ScoreDoc after, Query query, int n, Sort sort)` Finds the top `n` hits for `query` where all results are after a previous result (`after`).
    `TopFieldDocs` | IndexSearcher.`searchAfter(ScoreDoc after, Query query, int numHits, Sort sort, boolean doDocScores, boolean doMaxScore)` Finds the top `n` hits for `query` where all results are after a previous result (`after`), allowing control over whether hit scores and max score should be computed.

    Constructors in org.apache.lucene.search with parameters of type Sort
    Constructor and Description
    `SortRescorer(Sort sort)` Sole constructor.

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