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

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

### Uses of TopFieldDocs in org.apache.lucene.search

Methods in org.apache.lucene.search that return TopFieldDocs
Modifier and Type | Method and Description
--- | ---
`protected TopFieldDocs` | IndexSearcher.`search(List<AtomicReaderContext> leaves, Weight weight, FieldDoc after, int nDocs, Sort sort, boolean fillFields, boolean doDocScores, boolean doMaxScore)` Just like `IndexSearcher.search(Weight, int, Sort, boolean, boolean)`, but you choose whether or not the fields in the returned `FieldDoc` instances should be set by specifying fillFields.
`TopFieldDocs` | IndexSearcher.`search(Query query, Filter filter, int n, Sort sort)` Search implementation with arbitrary sorting.
`TopFieldDocs` | IndexSearcher.`search(Query query, Filter filter, 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.`search(Query query, int n, Sort sort)` Search implementation with arbitrary sorting and no filter.
`protected TopFieldDocs` | IndexSearcher.`search(Weight weight, FieldDoc after, int nDocs, Sort sort, boolean fillFields, boolean doDocScores, boolean doMaxScore)` Just like `IndexSearcher.search(Weight, int, Sort, boolean, boolean)`, but you choose whether or not the fields in the returned `FieldDoc` instances should be set by specifying fillFields.
`protected TopFieldDocs` | IndexSearcher.`search(Weight weight, int nDocs, Sort sort, boolean doDocScores, boolean doMaxScore)` Expert: Low-level search implementation with arbitrary sorting and control over whether hit scores and max score should be computed.