anl.aida.ae.lucene
Class DocumentBuilder

java.lang.Object
  extended by anl.aida.ae.lucene.DocumentBuilder

public class DocumentBuilder
extends java.lang.Object

Builds a Lucene document from a CAS.


Field Summary
private  java.util.Calendar cal
           
private  org.apache.uima.cas.Type mdType
           
private static java.lang.String META_DATA_TYPE
           
private  float titleBoost
           
 
Constructor Summary
DocumentBuilder(org.apache.uima.cas.TypeSystem system)
           
 
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
 

Field Detail

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
Constructor Detail

DocumentBuilder

public DocumentBuilder(org.apache.uima.cas.TypeSystem system)
Method Detail

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.