Class DefaultResultCategoriser

  extended by
All Implemented Interfaces:

public class DefaultResultCategoriser
extends Object
implements ResultCategoriser

Constructor Summary
DefaultResultCategoriser(CategoryMapperFactory categoryMapper)
Method Summary
 Map<Category,> categorise(DocumentResultScores resultScores, ResultTemplate resultTemplate)
          Categorises documentScores into categories defined in the specified resultTemplate.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public DefaultResultCategoriser(CategoryMapperFactory categoryMapper)
Method Detail


public Map<Category,> 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
resultScores - the scores for each document.
resultTemplate - the required grouping of results
results keyed by category

Copyright © 2003-2011 Atlassian. All Rights Reserved.