# Uses of Enum Class
org.apache.lucene.search.ScoreMode

Packages that use ScoreMode
Package
Description
org.apache.lucene.document
The logical representation of a `Document` for indexing and searching.
org.apache.lucene.search
Code to search indices.

## Uses of ScoreMode in org.apache.lucene.document

Methods in org.apache.lucene.document with parameters of type ScoreMode
Modifier and Type
Method
Description
`final Weight`
RangeFieldQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
`Weight`
XYDocValuesPointInGeometryQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`

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

Methods in org.apache.lucene.search that return ScoreMode
Modifier and Type
Method
Description
`ScoreMode`
Collector.`scoreMode()`
Indicates what features are required from the scorer.
`ScoreMode`
FilterCollector.`scoreMode()`
`ScoreMode`
MultiCollector.`scoreMode()`
`ScoreMode`
TopFieldCollector.`scoreMode()`
`ScoreMode`
TopScoreDocCollector.`scoreMode()`
`ScoreMode`
TotalHitCountCollector.`scoreMode()`
`static ScoreMode`
ScoreMode.`valueOf(String name)`
Returns the enum constant of this class with the specified name.
`static ScoreMode[]`
ScoreMode.`values()`
Returns an array containing the constants of this enum class, in the order they are declared.
Methods in org.apache.lucene.search with parameters of type ScoreMode
Modifier and Type
Method
Description
`Weight`
BooleanQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
`Weight`
BoostQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
`Weight`
ConstantScoreQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
`Weight`
DisjunctionMaxQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
Create the Weight used to score us
`Weight`
FieldExistsQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
`Weight`
IndexOrDocValuesQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
`Weight`
IndexSearcher.`createWeight(Query query, ScoreMode scoreMode, float boost)`
Creates a `Weight` for the given query, potentially adding caching if possible and configured.
`Weight`
IndexSortSortedNumericDocValuesRangeQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
`Weight`
IndriAndQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
`abstract Weight`
IndriQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
`Weight`
MatchAllDocsQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
`Weight`
MatchNoDocsQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
`Weight`
MultiPhraseQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
`Weight`
PhraseQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
`final Weight`
PointInSetQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
`final Weight`
PointRangeQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
`Weight`
Query.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
Expert: Constructs an appropriate Weight implementation for this query.
`Weight`
SynonymQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
`Weight`
TermQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
Constructors in org.apache.lucene.search with parameters of type ScoreMode
Modifier
Constructor
Description
``
`ConstantScoreScorer(float score, ScoreMode scoreMode, DocIdSetIterator disi)`
Constructor based on a `DocIdSetIterator` which will be used to drive iteration.
``
`ConstantScoreScorer(float score, ScoreMode scoreMode, TwoPhaseIterator twoPhaseIterator)`
Constructor based on a `TwoPhaseIterator`.
``
`DisjunctionMaxWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
Construct the Weight for this Query searched by searcher.
``
`ExactPhraseMatcher(PhraseQuery.PostingsAndFreq[] postings, ScoreMode scoreMode, Similarity.SimScorer scorer, float matchCost)`
Expert: Creates ExactPhraseMatcher instance
`protected`
`IndriAndScorer(List<Scorer> subScorers, ScoreMode scoreMode, float boost)`
``
`IndriAndWeight(IndriAndQuery query, IndexSearcher searcher, ScoreMode scoreMode, float boost)`
`protected`
`IndriDisjunctionScorer(List<Scorer> subScorersList, ScoreMode scoreMode, float boost)`
`protected`
`PhraseWeight(Query query, String field, IndexSearcher searcher, ScoreMode scoreMode)`
Expert: Creates PhraseWeight instance
``
`SloppyPhraseMatcher(PhraseQuery.PostingsAndFreq[] postings, int slop, ScoreMode scoreMode, Similarity.SimScorer scorer, float matchCost, boolean captureLeadMatch)`