|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.tigris.scarab.util.word.LuceneSearchIndex
Support for searching/indexing text
| Nested Class Summary | |
class |
LuceneSearchIndex.UpdateThread
|
| Field Summary |
| Fields inherited from interface org.tigris.scarab.util.word.SearchIndex |
ATTACHMENT_ID, ATTACHMENT_TYPE_ID, ATTRIBUTE_ID, EMPTY_LIST, INDEX_PATH, ISSUE_ID, PARSE_ERROR, TEXT, VALUE_ID |
| Constructor Summary | |
LuceneSearchIndex()
Ctor. |
|
| Method Summary | |
void |
addAttachmentQuery(java.lang.Integer[] ids,
java.lang.String text)
Specify search criteria for attachments |
void |
addQuery(java.lang.Integer[] ids,
java.lang.String text)
Specify search criteria. |
void |
clear()
Prepares the instance for reuse. |
void |
configure(org.apache.avalon.framework.configuration.Configuration conf)
Avalon component lifecycle method |
void |
contextualize(org.apache.avalon.framework.context.Context context)
|
void |
doCreateIndex()
|
java.lang.Long[] |
getRelatedIssues()
returns a list of related issue IDs sorted by relevance descending. |
java.lang.Long[] |
getRelatedIssues(boolean mergeResults)
returns a list of related issue IDs sorted by relevance descending. |
void |
index(Attachment attachment)
Store index information for an Attachment |
void |
index(AttributeValue attributeValue)
Store index information for an AttributeValue |
void |
initialize()
Avalon component lifecycle method Initializes the service by loading default class loaders and customized object factories. |
void |
updateIndex()
update the index for all entities that currently exist |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LuceneSearchIndex()
throws java.io.IOException
| Method Detail |
public void addQuery(java.lang.Integer[] ids,
java.lang.String text)
SearchIndex
addQuery in interface SearchIndex
public void addAttachmentQuery(java.lang.Integer[] ids,
java.lang.String text)
SearchIndex
addAttachmentQuery in interface SearchIndex
public java.lang.Long[] getRelatedIssues()
throws java.lang.Exception
SearchIndex
getRelatedIssues in interface SearchIndexjava.lang.Exception
public java.lang.Long[] getRelatedIssues(boolean mergeResults)
throws java.lang.Exception
getRelatedIssues in interface SearchIndexjava.lang.Exception
public void index(AttributeValue attributeValue)
throws java.lang.Exception
index in interface SearchIndexjava.lang.Exception
public void index(Attachment attachment)
throws java.lang.Exception
index in interface SearchIndexjava.lang.Exception
public void updateIndex()
throws java.lang.Exception
updateIndex in interface SearchIndexjava.lang.Exceptionpublic void configure(org.apache.avalon.framework.configuration.Configuration conf)
configure in interface org.apache.avalon.framework.configuration.Configurable
public void contextualize(org.apache.avalon.framework.context.Context context)
throws org.apache.avalon.framework.context.ContextException
contextualize in interface org.apache.avalon.framework.context.Contextualizableorg.apache.avalon.framework.context.ContextExceptionContextualizable
public void initialize()
throws java.lang.Exception
initialize in interface org.apache.avalon.framework.activity.InitializableInitializationException - if initialization fails.
java.lang.Exceptionpublic void clear()
SearchIndex
clear in interface SearchIndex
public void doCreateIndex()
throws java.lang.Exception
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||