anl.aida.ae.lucene
Class DocumentBuilder
java.lang.Object
anl.aida.ae.lucene.DocumentBuilder
public class DocumentBuilder
- extends java.lang.Object
Builds a Lucene document from a CAS.
Method Summary |
org.apache.lucene.document.Document |
build(org.apache.uima.cas.CAS cas)
Builds a Lucene Document based on the content of the CAS. |
float |
getTitleBoost()
Gets the title boost. |
void |
setTitleBoost(float titleBoost)
Sets the title boost value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
META_DATA_TYPE
private static final java.lang.String META_DATA_TYPE
- See Also:
- Constant Field Values
cal
private java.util.Calendar cal
mdType
private org.apache.uima.cas.Type mdType
titleBoost
private float titleBoost
DocumentBuilder
public DocumentBuilder(org.apache.uima.cas.TypeSystem system)
getTitleBoost
public float getTitleBoost()
- Gets the title boost.
- Returns:
- the title boost.
setTitleBoost
public void setTitleBoost(float titleBoost)
- Sets the title boost value.
- Parameters:
titleBoost
- the new title boost value
build
public org.apache.lucene.document.Document build(org.apache.uima.cas.CAS cas)
- Builds a Lucene Document based on the content of the CAS.
- Parameters:
cas
- the CAS to build the doc from.
- Returns:
- the built Document.