org.elasticsearch.common.lucene
Class DocumentBuilder

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

public class DocumentBuilder
extends 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(String name, byte[] value, org.apache.lucene.document.Field.Store store)
           
static FieldBuilder field(String name, byte[] value, int offset, int length, org.apache.lucene.document.Field.Store store)
           
static FieldBuilder field(String name, String value)
           
static FieldBuilder field(String name, String value, org.apache.lucene.document.Field.Store store, org.apache.lucene.document.Field.Index index)
           
static FieldBuilder field(String name, String value, org.apache.lucene.document.Field.Store store, org.apache.lucene.document.Field.Index index, org.apache.lucene.document.Field.TermVector termVector)
           
static org.apache.lucene.document.Fieldable uidField(String value)
           
static org.apache.lucene.document.Fieldable uidField(String value, long version)
           
 
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()

uidField

public static org.apache.lucene.document.Fieldable uidField(String value)

uidField

public static org.apache.lucene.document.Fieldable uidField(String value,
                                                            long version)

field

public static FieldBuilder field(String name,
                                 String value)

field

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

field

public static FieldBuilder field(String name,
                                 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(String name,
                                 byte[] value,
                                 org.apache.lucene.document.Field.Store store)

field

public static FieldBuilder field(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()


Copyright © 2009-2012. All Rights Reserved.