| Package | Description | 
|---|---|
| org.apache.lucene.search | Code to search indices. | 
| Modifier and Type | Field and Description | 
|---|---|
| static SortField | SortField. FIELD_DOCRepresents sorting by document number (index order). | 
| static SortField | SortField. FIELD_SCORERepresents sorting by document score (relevance). | 
| protected SortField[] | FieldValueHitQueue. fieldsStores the sort criteria being used. | 
| SortField[] | TopFieldDocs. fieldsThe fields which were used to sort results by. | 
| Modifier and Type | Method and Description | 
|---|---|
| SortField[] | Sort. getSort()Representation of the sort criteria. | 
| SortField | SortField. rewrite(IndexSearcher searcher)Rewrites this SortField, returning a new SortField if a change is made. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T extends FieldValueHitQueue.Entry>  | FieldValueHitQueue. create(SortField[] fields,
      int size)Creates a hit queue sorted by the given list of fields. | 
| void | Sort. setSort(SortField... fields)Sets the sort to the given criteria in succession. | 
| void | Sort. setSort(SortField field)Sets the sort to the given criteria. | 
| Constructor and Description | 
|---|
| Sort(SortField... fields)Sorts in succession by the criteria in each SortField. | 
| Sort(SortField field)Sorts by the criteria in the given SortField. | 
| TopFieldDocs(int totalHits,
            ScoreDoc[] scoreDocs,
            SortField[] fields,
            float maxScore)Creates one of these objects. | 
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.