|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The avalon behavioural component interface of generating lucene documents from an xml content.
The well-known fields of a lucene documents are defined as
*_FIELD
constants.
You may access generated lucene documents via
allDocuments()
, or iterator()
.
You trigger the generating of lucene documents via
build()
.
Field Summary | |
static java.lang.String |
BODY_FIELD
A Lucene document field name, containing xml content text of all xml elements. |
static java.lang.String |
ROLE
The ROLE name of this avalon component. |
static java.lang.String |
UID_FIELD
A Lucene document field name, containg the a unique key of the indexed document. |
static java.lang.String |
URL_FIELD
A Lucene document field name, containg the URI/URL of the indexed document. |
Method Summary | |
java.util.List |
build(java.net.URL url)
Build lucene documents from a URL. |
Field Detail |
public static final java.lang.String ROLE
Its value if the FQN of this interface,
ie. org.apache.cocoon.components.search.LuceneXMLIndexer
.
public static final java.lang.String BODY_FIELD
A concrete implementation of this interface SHOULD provides a field named body.
A concrete implementation MAY provide additional lucene document fields.
public static final java.lang.String URL_FIELD
A concrete implementation of this interface SHOULD provide a field named url.
public static final java.lang.String UID_FIELD
This document field is used internally to track document changes, and updates.
A concrete implementation of this interface SHOULD provide a field named uid.
Method Detail |
public java.util.List build(java.net.URL url) throws ProcessingException
This method will read the content of the URL, and generates one or more lucene documents. The generated lucence documents can be fetched using methods allDocuments(), and iterator().
url
- the content of this url gets indexed.ProcessingException
- Description of Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |