public class DefaultResultConverter extends Object implements ResultConverter
Constructor and Description |
---|
DefaultResultConverter(com.atlassian.bonnie.ILuceneConnection luceneConnection) |
Modifier and Type | Method and Description |
---|---|
List<SearchResult> |
asList(org.apache.lucene.search.TopDocsCollector results)
Converts the results to a list of SearchResult, i.e.
|
Map<Category,List<SearchResult>> |
categorise(Map<Category,org.apache.lucene.search.TopDocsCollector> results)
Convert search results and categorise
|
public DefaultResultConverter(com.atlassian.bonnie.ILuceneConnection luceneConnection)
public Map<Category,List<SearchResult>> categorise(Map<Category,org.apache.lucene.search.TopDocsCollector> results)
ResultConverter
categorise
in interface ResultConverter
results
- results to convertpublic List<SearchResult> asList(org.apache.lucene.search.TopDocsCollector results)
ResultConverter
asList
in interface ResultConverter
results
- results to convertCopyright © 2003–2015 Atlassian. All rights reserved.