public class DefaultScorer extends Object implements Scorer
(0.40 * M) + (0.25 * C) + (0.20 * D) + (0.15 * S)| Constructor and Description |
|---|
DefaultScorer() |
| Modifier and Type | Method and Description |
|---|---|
double |
getMaximumScore()
Get the maximum score returned by this scorer.
|
double |
getMinimumScore()
Get the minimum score returned by this scorer.
|
double |
score(List<String> terms,
MatchedLocation candidate)
Generate a score representing how well the candidate result
matches the search terms.
|
public double score(List<String> terms, MatchedLocation candidate)
Scorerpublic double getMinimumScore()
ScorergetMinimumScore in interface Scorerpublic double getMaximumScore()
ScorergetMaximumScore in interface ScorerCopyright © 2012–2014 Berico Technologies. All rights reserved.