com.atlassian.confluence.search.lucene
Class ConfluenceDocumentBuilder

java.lang.Object
  extended by 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.


Nested Class Summary
static class ConfluenceDocumentBuilder.FieldName
           
 
Constructor Summary
ConfluenceDocumentBuilder(com.atlassian.bonnie.HandleResolver handleResolver, com.atlassian.plugin.PluginAccessor pluginAccessor, List<com.atlassian.bonnie.search.DocumentPostProcessor> postProcessors)
           
 
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
 

Constructor Detail

ConfluenceDocumentBuilder

public ConfluenceDocumentBuilder(com.atlassian.bonnie.HandleResolver handleResolver,
                                 com.atlassian.plugin.PluginAccessor pluginAccessor,
                                 List<com.atlassian.bonnie.search.DocumentPostProcessor> postProcessors)
Method Detail

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


Copyright © 2003-2012 Atlassian. All Rights Reserved.