com.atlassian.confluence.search.contentnames.lucene
Interface ResultConverter

All Known Implementing Classes:
DefaultResultConverter

public interface ResultConverter

Converts search results from docId's into actual SearchResults.


Method Summary
 List<SearchResult> asList(org.apache.lucene.search.TopDocCollector results)
          Converts the results to a list of SearchResult, i.e.
 Map<Category,List<SearchResult>> categorise(Map<Category,org.apache.lucene.search.TopDocCollector> results)
          Convert search results and categorise
 

Method Detail

categorise

Map<Category,List<SearchResult>> categorise(Map<Category,org.apache.lucene.search.TopDocCollector> results)
Convert search results and categorise

Parameters:
results - results to convert
Returns:
ordered results keyed by category. Search results are ordered such that highest scoring hits come first.

asList

List<SearchResult> asList(org.apache.lucene.search.TopDocCollector results)
Converts the results to a list of SearchResult, i.e. with no categorisation.

Parameters:
results - results to convert
Returns:
Search results are ordered such that highest scoring hits come first.


Copyright © 2003-2011 Atlassian. All Rights Reserved.