|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.cocoon.components.search.SimpleLuceneCocoonIndexerImpl
A lucene indexer.
XML documents are indexed using lucene. Links to XML documents are supplied by a crawler, requesting links of documents by specifying a cocoon-view, and HTTP protocol.
| Field Summary | |
static java.lang.String |
ANALYZER_CLASSNAME_CONFIG
Description of the Field |
static java.lang.String |
ANALYZER_CLASSNAME_DEFAULT
Description of the Field |
static java.lang.String |
DIRECTORY_CONFIG
Description of the Field |
static java.lang.String |
DIRECTORY_DEFAULT
Description of the Field |
protected org.apache.avalon.framework.component.ComponentManager |
manager
The component manager instance |
static java.lang.String |
MERGE_FACTOR_CONFIG
Description of the Field |
static int |
MERGE_FACTOR_DEFAULT
http://www.mail-archive.com/lucene-user@jakarta.apache.org/msg00373.html |
| Fields inherited from interface org.apache.cocoon.components.search.LuceneCocoonIndexer |
ROLE |
| Constructor Summary | |
SimpleLuceneCocoonIndexerImpl()
|
|
| Method Summary | |
void |
compose(org.apache.avalon.framework.component.ComponentManager manager)
Set the current ComponentManager instance used by this
Composable. |
void |
configure(org.apache.avalon.framework.configuration.Configuration conf)
Description of the Method |
void |
dispose()
Description of the Method |
void |
index(org.apache.lucene.store.Directory index,
boolean create,
java.net.URL base_url)
index content of base_url, index content of links from base_url. |
void |
setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
Sets the analyzer attribute of the SimpleLuceneCocoonIndexerImpl object |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
| 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 ANALYZER_CLASSNAME_CONFIG
public static final java.lang.String ANALYZER_CLASSNAME_DEFAULT
public static final java.lang.String DIRECTORY_CONFIG
public static final java.lang.String DIRECTORY_DEFAULT
public static final java.lang.String MERGE_FACTOR_CONFIG
public static final int MERGE_FACTOR_DEFAULT
protected org.apache.avalon.framework.component.ComponentManager manager
| Constructor Detail |
public SimpleLuceneCocoonIndexerImpl()
| Method Detail |
public void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
setAnalyzer in interface LuceneCocoonIndexeranalyzer - The new analyzer value
public void configure(org.apache.avalon.framework.configuration.Configuration conf)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableconf - Description of Parameterorg.apache.avalon.framework.configuration.ConfigurationException - Description of Exception
public void compose(org.apache.avalon.framework.component.ComponentManager manager)
throws org.apache.avalon.framework.component.ComponentException
ComponentManager instance used by this
Composable.compose in interface org.apache.avalon.framework.component.Composablemanager - Description of Parameterorg.apache.avalon.framework.component.ComponentException - Description of Exceptionpublic void dispose()
dispose in interface org.apache.avalon.framework.activity.Disposable
public void index(org.apache.lucene.store.Directory index,
boolean create,
java.net.URL base_url)
throws ProcessingException
index in interface LuceneCocoonIndexerindex - the lucene store to write the index tocreate - iff true create, or overwrite existing index, else
update existing index.base_url - index content of base_url, and crawl through all its
links recursivly.ProcessingException - Description of Exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||