public class RelevanceNormalizer extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
RELEVANCE_TIMER |
| Constructor and Description |
|---|
RelevanceNormalizer(ddf.catalog.filter.FilterAdapter filterAdapter) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getSearchPhrase(ddf.catalog.operation.Query query)
Pull out the string-based search phrase from a query.
|
List<ddf.catalog.data.Result> |
normalize(List<ddf.catalog.data.Result> results,
ddf.catalog.operation.Query originalQuery)
Normalize the relevance score for the results in the query response based on the contextual query criteria
|
protected ddf.catalog.data.Result |
updateResult(ddf.catalog.data.Result origResult,
float newScore)
Creates a new result with an updated score.
|
public static final String RELEVANCE_TIMER
public RelevanceNormalizer(ddf.catalog.filter.FilterAdapter filterAdapter)
public List<ddf.catalog.data.Result> normalize(List<ddf.catalog.data.Result> results, ddf.catalog.operation.Query originalQuery)
results - originalQuery - protected String getSearchPhrase(ddf.catalog.operation.Query query)
query - Query that possibly contains a search phrase.protected ddf.catalog.data.Result updateResult(ddf.catalog.data.Result origResult,
float newScore)
origResult - Original result that contains an older score.newScore - New score to update the result with.Copyright © 2014 Cohesive Integrations, LLC. All rights reserved.