com.atlassian.confluence.search.lucene
Class ConfluenceDocumentBuilder
java.lang.Object
com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder
- All Implemented Interfaces:
- com.atlassian.bonnie.search.DocumentBuilder
public class ConfluenceDocumentBuilder
- extends Object
- implements com.atlassian.bonnie.search.DocumentBuilder
A Confluence specific implementation of the DocumentBuilder that is aware of plugin's and the fact that new
document extractors may become available or unavailable based on the current plugins installed.
Since the BaseDocumentBuilder is immutable when the extractors change a new documentBuilder is created.
Produces documents with of type SearchResultType.CONTENT
.
Method Summary |
org.apache.lucene.document.Document |
getDocument(com.atlassian.bonnie.Searchable searchable)
|
com.atlassian.bonnie.Handle |
getHandle(Object obj)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfluenceDocumentBuilder
public ConfluenceDocumentBuilder(com.atlassian.bonnie.HandleResolver handleResolver,
PluginAccessor pluginAccessor,
List<com.atlassian.bonnie.search.DocumentPostProcessor> postProcessors)
getDocument
public org.apache.lucene.document.Document getDocument(com.atlassian.bonnie.Searchable searchable)
- Specified by:
getDocument
in interface com.atlassian.bonnie.search.DocumentBuilder
getHandle
public com.atlassian.bonnie.Handle getHandle(Object obj)
- Specified by:
getHandle
in interface com.atlassian.bonnie.search.DocumentBuilder