Class LuceneDocument
- java.lang.Object
-
- net.ontopia.infoset.fulltext.impl.lucene.LuceneDocument
-
- All Implemented Interfaces:
DocumentIF
public class LuceneDocument extends Object implements DocumentIF
INTERNAL: DocumentIF wrapper for Lucene's own internal document class.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.lucene.document.Documentdocument
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddField(FieldIF field)INTERNAL: Adds the given field to the document.FieldIFgetField(String name)INTERNAL: Returns the field with the specified name.Collection<FieldIF>getFields()INTERNAL: Returns all the fields of this document.voidremoveField(FieldIF field)INTERNAL: Removes the given field from the document.StringtoString()
-
-
-
Method Detail
-
getField
public FieldIF getField(String name)
Description copied from interface:DocumentIFINTERNAL: Returns the field with the specified name.- Specified by:
getFieldin interfaceDocumentIF
-
getFields
public Collection<FieldIF> getFields()
Description copied from interface:DocumentIFINTERNAL: Returns all the fields of this document.- Specified by:
getFieldsin interfaceDocumentIF- Returns:
- A collection of FieldIF objects.
-
addField
public void addField(FieldIF field)
Description copied from interface:DocumentIFINTERNAL: Adds the given field to the document.- Specified by:
addFieldin interfaceDocumentIF
-
removeField
public void removeField(FieldIF field)
Description copied from interface:DocumentIFINTERNAL: Removes the given field from the document.- Specified by:
removeFieldin interfaceDocumentIF
-
-