|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.components.search.SimpleLuceneXMLIndexerImpl
public class SimpleLuceneXMLIndexerImpl
A simple class building lucene documents from xml content.
It has two parameters that effect the way it works:
<store-fields/> Sets which tags in your content are stored in Lucene as fields, during the indexing process. Allows them to be output with search hits.
<content-view-query/> Sets the view the indexer will request for indexing content.
Example configuration (goes in cocoon.xconf)
<lucene-xml-indexer logger="core.search.lucene"> <store-fields>title, summary</store-fields> <content-view-query>cocoon-view=search</content-view-query> </lucene-xml-indexer>
Field Summary | |
---|---|
static String |
CONTENT_VIEW_QUERY_CONFIG
Config element name specifying query-string appendend for requesting links of an URL. |
static String |
FIELDTAGS_CONFIG
Config element name specifying the tags to be added as Stored, Untokenised, Unindexed Fields. |
protected ServiceManager |
manager
The service manager instance |
Fields inherited from interface org.apache.cocoon.components.search.LuceneXMLIndexer |
---|
BODY_FIELD, ROLE, UID_FIELD, URL_FIELD |
Constructor Summary | |
---|---|
SimpleLuceneXMLIndexerImpl()
|
Method Summary | |
---|---|
List |
build(URL url)
Build lucenen documents from a URL |
void |
configure(Configuration configuration)
configure |
void |
service(ServiceManager manager)
Set the current ServiceManager instance used by this
Serviceable . |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ServiceManager manager
public static final String CONTENT_VIEW_QUERY_CONFIG
Its value is link-view-query
.
public static final String FIELDTAGS_CONFIG
Its value is field-tags
.
Constructor Detail |
---|
public SimpleLuceneXMLIndexerImpl()
Method Detail |
---|
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configuration
-
ConfigurationException
public void service(ServiceManager manager) throws ServiceException
ServiceManager
instance used by this
Serviceable
.
service
in interface Serviceable
manager
- Description of Parameter
ServiceException
- Description of Exceptionpublic List build(URL url) throws ProcessingException
build
in interface LuceneXMLIndexer
url
- the content of this url gets indexed.
ProcessingException
- Description of Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |