|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder
public class ConfluenceDocumentBuilder
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
|
Field Summary | |
---|---|
static java.lang.String |
TYPE_FIELD
|
static java.lang.String |
URL_PATH_FIELD
|
Constructor Summary | |
---|---|
ConfluenceDocumentBuilder(com.atlassian.bonnie.HandleResolver handleResolver,
com.atlassian.plugin.PluginAccessor pluginAccessor)
|
|
ConfluenceDocumentBuilder(com.atlassian.bonnie.HandleResolver handleResolver,
com.atlassian.plugin.PluginAccessor pluginAccessor,
java.util.List<com.atlassian.bonnie.search.Extractor> luceneExtractors)
Constructor for tests. |
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
org.apache.lucene.document.Document |
getDocument(com.atlassian.bonnie.Searchable searchable)
Generates a Lucene document using the extractors defined by construction of BaseDocumentBuilder. |
com.atlassian.bonnie.Handle |
getHandle(java.lang.Object obj)
|
protected org.apache.lucene.document.Document |
getInitialDocument(com.atlassian.bonnie.Searchable searchable)
Get the initial document that will be passed through the chain of extractors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TYPE_FIELD
public static final java.lang.String URL_PATH_FIELD
Constructor Detail |
---|
public ConfluenceDocumentBuilder(com.atlassian.bonnie.HandleResolver handleResolver, com.atlassian.plugin.PluginAccessor pluginAccessor)
public ConfluenceDocumentBuilder(com.atlassian.bonnie.HandleResolver handleResolver, com.atlassian.plugin.PluginAccessor pluginAccessor, java.util.List<com.atlassian.bonnie.search.Extractor> luceneExtractors)
Method Detail |
---|
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public org.apache.lucene.document.Document getDocument(com.atlassian.bonnie.Searchable searchable)
getDocument
in interface com.atlassian.bonnie.search.DocumentBuilder
searchable
- The object to be processed
protected org.apache.lucene.document.Document getInitialDocument(com.atlassian.bonnie.Searchable searchable)
searchable
- the object the document is being created for
public com.atlassian.bonnie.Handle getHandle(java.lang.Object obj)
getHandle
in interface com.atlassian.bonnie.search.DocumentBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |