P - Score parameter typeF - The type to apply scores topublic class ScoreConfigFactory<P,F> extends Object
ScoreConfig| Constructor and Description |
|---|
ScoreConfigFactory() |
| Modifier and Type | Method and Description |
|---|---|
ScoreConfig<P,F> |
build()
Create a
ScoreConfig from this factory. |
ScoreConfigFactory<P,F> |
copy() |
ScoreConfigFactory<P,F> |
multiplyAll(double value)
Multiply all current
AbstractScorers in this factory's ScoreSet weights by a factor |
static <Params,Field> |
newInstance() |
ScoreConfigFactory<P,F> |
withPost(PostScorer<P,F> post)
Add a
PostScorer to this factory. |
ScoreConfigFactory<P,F> |
withPreScorer(PreScorer<P> analyzer)
Add a
PreScorer to this factory |
ScoreConfigFactory<P,F> |
withScoreConfig(ScoreConfig<P,F> config) |
ScoreConfigFactory<P,F> |
withScorer(FScorer<P,F> scorer)
Add a scorer to this factory
|
ScoreConfigFactory<P,F> |
withScorer(FScorer<P,F> scorer,
double weight)
Add a scorer with the specified weight to this factory.
|
public static <Params,Field> ScoreConfigFactory<Params,Field> newInstance()
public ScoreConfigFactory<P,F> withScoreConfig(ScoreConfig<P,F> config)
public ScoreConfigFactory<P,F> copy()
public ScoreConfigFactory<P,F> withScorer(FScorer<P,F> scorer)
scorer - Scorer to addpublic ScoreConfigFactory<P,F> withScorer(FScorer<P,F> scorer, double weight)
scorer - Scorer to addweight - Weight that should be applied to the scorerpublic ScoreConfigFactory<P,F> multiplyAll(double value)
AbstractScorers in this factory's ScoreSet weights by a factorvalue - Factor to multiply withpublic ScoreConfigFactory<P,F> withPost(PostScorer<P,F> post)
PostScorer to this factory.post - PostScorer to addpublic ScoreConfig<P,F> build()
ScoreConfig from this factory.ScoreConfig for the PreScorers, PostScorer and AbstractScorers that has been added to this factory.Copyright © 2014. All rights reserved.