public enum ScoreMode extends Enum<ScoreMode>
Enum Constant and Description |
---|
COMPLETE
Produced scorers will allow visiting all matches and get their score.
|
COMPLETE_NO_SCORES
Produced scorers will allow visiting all matches but scores won't be
available.
|
TOP_DOCS
ScoreMode for top field collectors that can provide their own iterators,
to optionally allow to skip for non-competitive docs
|
TOP_DOCS_WITH_SCORES
ScoreMode for top field collectors that can provide their own iterators,
to optionally allow to skip for non-competitive docs.
|
TOP_SCORES
Produced scorers will optionally allow skipping over non-competitive
hits using the
Scorable.setMinCompetitiveScore(float) API. |
Modifier and Type | Method and Description |
---|---|
boolean |
isExhaustive()
Returns
true if for this ScoreMode it is necessary to process all documents,
or false if is enough to go through top documents only. |
boolean |
needsScores()
Whether this
ScoreMode needs to compute scores. |
static ScoreMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScoreMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScoreMode COMPLETE
public static final ScoreMode COMPLETE_NO_SCORES
public static final ScoreMode TOP_SCORES
Scorable.setMinCompetitiveScore(float)
API.public static final ScoreMode TOP_DOCS
public static final ScoreMode TOP_DOCS_WITH_SCORES
public static ScoreMode[] values()
for (ScoreMode c : ScoreMode.values()) System.out.println(c);
public static ScoreMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean needsScores()
ScoreMode
needs to compute scores.public boolean isExhaustive()
true
if for this ScoreMode
it is necessary to process all documents,
or false
if is enough to go through top documents only.Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.