|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LuceneXMLIndexer
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 String |
BODY_FIELD
A Lucene document field name, containing xml content text of all xml elements. |
static String |
ROLE
The ROLE name of this avalon component. |
static String |
UID_FIELD
A Lucene document field name, containg the a unique key of the indexed document. |
static String |
URL_FIELD
A Lucene document field name, containg the URI/URL of the indexed document. |
Method Summary | |
---|---|
List |
build(URL url)
Build lucene documents from a URL. |
Field Detail |
---|
static final String ROLE
Its value if the FQN of this interface,
ie. org.apache.cocoon.components.search.LuceneXMLIndexer
.
static final String BODY_FIELD
A concrete implementation of this interface SHOULD provides a field named body.
A concrete implementation MAY provide additional lucene document fields.
static final String URL_FIELD
A concrete implementation of this interface SHOULD provide a field named url.
static final 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 |
---|
List build(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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |