| java.lang.Object org.tigris.scarab.util.word.LuceneSearchIndex
LuceneSearchIndex | public class LuceneSearchIndex implements SearchIndex,Configurable,Contextualizable,Initializable(Code) | | Support for searching/indexing text
author: John McNally version: $Id: LuceneSearchIndex.java 10193 2006-06-30 12:49:42Z dabbous $ |
Inner Class :public class UpdateThread implements Runnable | |
LuceneSearchIndex | public LuceneSearchIndex() throws IOException(Code) | | Ctor. Sets up an index directory if one does not yet exist in the
path specified by searchindex.path property in Scarab.properties.
|
clear | public void clear()(Code) | | |
configure | public void configure(Configuration conf)(Code) | | Avalon component lifecycle method
|
contextualize | public void contextualize(Context context) throws ContextException(Code) | | See Also: org.apache.avalon.framework.context.Contextualizable |
getRelatedIssues | public Long[] getRelatedIssues(boolean mergeResults) throws Exception(Code) | | returns a list of related issue IDs sorted by relevance descending.
Should return an empty/length=0 array if search returns no results.
If mergeResults==true, internally merges results of partial queries,
otherwise performs an implicit AND operation on partial queries.
|
initialize | public void initialize() throws Exception(Code) | | Avalon component lifecycle method
Initializes the service by loading default class loaders
and customized object factories.
throws: InitializationException - if initialization fails. |
updateIndex | public void updateIndex() throws Exception(Code) | | update the index for all entities that currently exist
|
|
|