|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.search.LuceneIndexContentHandler
public class LuceneIndexContentHandler
Parse XML and generate lucene document(s) can now be configured via SimpleLuceneXMLIndexerImpl to store specific tags in Lucene, so that you can display them with hits.
Field Summary | |
---|---|
static String |
LUCENE_ATTR_TO_TEXT_ATTRIBUTE
If this attribute is specified on element, values of all attributes are added to the text of the element, and to the document body text |
static String |
LUCENE_URI
|
Constructor Summary | |
---|---|
LuceneIndexContentHandler()
Constructor for the LuceneIndexContentHandler object |
Method Summary | |
---|---|
List |
allDocuments()
|
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(String namespaceURI,
String localName,
String qName)
|
void |
endPrefixMapping(String prefix)
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
Iterator |
iterator()
|
void |
processingInstruction(String target,
String data)
|
void |
setDocumentLocator(Locator locator)
Sets the documentLocator attribute of the LuceneIndexContentHandler object |
void |
setFieldTags(HashSet fieldTags)
Sets the fieldTags attribute of the LuceneIndexContentHandler object |
void |
skippedEntity(String name)
|
void |
startDocument()
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
|
void |
startPrefixMapping(String prefix,
String uri)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String LUCENE_URI
public static final String LUCENE_ATTR_TO_TEXT_ATTRIBUTE
Constructor Detail |
---|
public LuceneIndexContentHandler()
Method Detail |
---|
public void setFieldTags(HashSet fieldTags)
fieldTags
- The new fieldTags valuepublic void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
locator
- The new documentLocator valuepublic List allDocuments()
public Iterator iterator()
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
public void endDocument()
endDocument
in interface ContentHandler
public void endElement(String namespaceURI, String localName, String qName)
endElement
in interface ContentHandler
public void endPrefixMapping(String prefix)
endPrefixMapping
in interface ContentHandler
public void ignorableWhitespace(char[] ch, int start, int length)
ignorableWhitespace
in interface ContentHandler
public void processingInstruction(String target, String data)
processingInstruction
in interface ContentHandler
public void skippedEntity(String name)
skippedEntity
in interface ContentHandler
public void startDocument()
startDocument
in interface ContentHandler
public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
startElement
in interface ContentHandler
public void startPrefixMapping(String prefix, String uri)
startPrefixMapping
in interface ContentHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |