com.atlassian.confluence.search.contentnames.lucene
Class DefaultResultCategoriser
java.lang.Object
com.atlassian.confluence.search.contentnames.lucene.DefaultResultCategoriser
- All Implemented Interfaces:
- ResultCategoriser
public class DefaultResultCategoriser
- extends Object
- implements ResultCategoriser
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultResultCategoriser
public DefaultResultCategoriser(CategoryMapperFactory categoryMapper)
categorise
public Map<Category,TopDocCollector> categorise(DocumentResultScores resultScores,
ResultTemplate resultTemplate)
- Description copied from interface:
ResultCategoriser
- Categorises documentScores into categories defined in the specified resultTemplate. If no results are found for any
particular category, then an empty
TopDocCollector
is assigned that category.
- Specified by:
categorise
in interface ResultCategoriser
- Parameters:
resultScores
- the scores for each document.resultTemplate
- the required grouping of results
- Returns:
- results keyed by category