|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface IndexFieldPreprocessor
Interface used to pre-process content for a custom field prior to indexing it. A single instance of the
concrete class will be created and reused when processing the configured field(s) for each Document that is added to the index.
| Method Summary | |
|---|---|
void |
contextConfigListener(Object contextConfig)
Implement this method to receive the context configuration object, which may be used to fetch configuration settings. |
String[] |
processFieldContent(String fieldContent,
org.apache.lucene.document.Document newLuceneDoc,
org.dom4j.Document xmlDoc)
Implement this method to pre-process the configured custom XPath field content for each Lucene Document. |
| Method Detail |
|---|
String[] processFieldContent(String fieldContent,
org.apache.lucene.document.Document newLuceneDoc,
org.dom4j.Document xmlDoc)
Document will be made. Return null to have no content indexed for
the given Document. As a convenience the Lucene Document is passed in so additional custom fields can be
written if needed. The XML Document is passed in to allow access to other content as needed.
fieldContent - The existing content found at the configured XPath for a given custom fieldnewLuceneDoc - The new Lucene Document that will be inserted in the index for this recordxmlDoc - The dom4j Document that is being indexed in this context
void contextConfigListener(Object contextConfig)
processFieldContent(java.lang.String, org.apache.lucene.document.Document, org.dom4j.Document) first called.
contextConfig - The context configuration object, for example and instance of ServletContext
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||