org.elasticsearch.common.lucene
Class DocumentBuilder

java.lang.Object
  extended by org.elasticsearch.common.lucene.DocumentBuilder

public class DocumentBuilder
extends java.lang.Object


Field Summary
static org.apache.lucene.document.Document EMPTY
           
 
Method Summary
 DocumentBuilder add(org.apache.lucene.document.Fieldable field)
           
 DocumentBuilder add(FieldBuilder fieldBuilder)
           
 DocumentBuilder boost(float boost)
           
 org.apache.lucene.document.Document build()
           
static DocumentBuilder doc()
           
static FieldBuilder field(java.lang.String name, byte[] value, org.apache.lucene.document.Field.Store store)
           
static FieldBuilder field(java.lang.String name, byte[] value, int offset, int length, org.apache.lucene.document.Field.Store store)
           
static FieldBuilder field(java.lang.String name, java.lang.String value)
           
static FieldBuilder field(java.lang.String name, java.lang.String value, org.apache.lucene.document.Field.Store store, org.apache.lucene.document.Field.Index index)
           
static FieldBuilder field(java.lang.String name, java.lang.String value, org.apache.lucene.document.Field.Store store, org.apache.lucene.document.Field.Index index, org.apache.lucene.document.Field.TermVector termVector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final org.apache.lucene.document.Document EMPTY
Method Detail

doc

public static DocumentBuilder doc()

field

public static FieldBuilder field(java.lang.String name,
                                 java.lang.String value)

field

public static FieldBuilder field(java.lang.String name,
                                 java.lang.String value,
                                 org.apache.lucene.document.Field.Store store,
                                 org.apache.lucene.document.Field.Index index)

field

public static FieldBuilder field(java.lang.String name,
                                 java.lang.String value,
                                 org.apache.lucene.document.Field.Store store,
                                 org.apache.lucene.document.Field.Index index,
                                 org.apache.lucene.document.Field.TermVector termVector)

field

public static FieldBuilder field(java.lang.String name,
                                 byte[] value,
                                 org.apache.lucene.document.Field.Store store)

field

public static FieldBuilder field(java.lang.String name,
                                 byte[] value,
                                 int offset,
                                 int length,
                                 org.apache.lucene.document.Field.Store store)

boost

public DocumentBuilder boost(float boost)

add

public DocumentBuilder add(org.apache.lucene.document.Fieldable field)

add

public DocumentBuilder add(FieldBuilder fieldBuilder)

build

public org.apache.lucene.document.Document build()