helma.Search.Document

Object
   |
   +--helma.Search.Document


Instances of this class represent a single index document. This class provides various methods for adding content to such documents.
Defined in Search.js



Constructor Summary
helma.Search.Document(<org.apache.lucene.document.Document> document)
            Creates a new instance of helma.Search.Document.
 
Methods Summary
 void addField(<String> name, <String> value, <Object> param)
           Adds a field to this document.
 Number getBoost()
           Returns the boost factor of a document.
 Object getDateField(<String> name)
           Returns the value of a single document field converted into a Date object.
 org.apache.lucene.document.Document getDocument()
           Returns the wrapped Lucene Document object
 Object getField(<String> name)
           Returns a single document field containing a value other than a date object, for which you should use getDateField().
 Array getFields()
           Returns the fields of a document object.
 void setBoost(<Number> boost)
           Sets the boost factor of a document.

Constructor Detail

helma.Search.Document

helma.Search.Document(<org.apache.lucene.document.Document> document)

Method Detail

addField

void addField(<String> name, <String> value, <Object> param)

getBoost

Number getBoost()

getDateField

Object getDateField(<String> name)

getDocument

org.apache.lucene.document.Document getDocument()

getField

Object getField(<String> name)

getFields

Array getFields()

setBoost

void setBoost(<Number> boost)


Documentation generated by JSDoc on Thu Apr 5 01:59:00 2007