org.elasticsearch.common.lucene
Class DocumentBuilder
java.lang.Object
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)
|
static org.apache.lucene.document.Fieldable |
uidField(java.lang.String value)
|
static org.apache.lucene.document.Fieldable |
uidField(java.lang.String value,
long version)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY
public static final org.apache.lucene.document.Document EMPTY
doc
public static DocumentBuilder doc()
uidField
public static org.apache.lucene.document.Fieldable uidField(java.lang.String value)
uidField
public static org.apache.lucene.document.Fieldable uidField(java.lang.String value,
long version)
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()