|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.derquinse.common.reflect.This<B>
net.conquiris.lucene.document.FieldBuilder<B>
net.conquiris.lucene.document.IndexableFieldBuilder<B>
net.conquiris.lucene.document.BaseTextFieldBuilder<B>
public abstract class BaseTextFieldBuilder<B extends BaseTextFieldBuilder<B>>
Base class for text field builders. Text fields are indexed, tokenized but not stored by default. Term vectors are not stored by default.
| Field Summary |
|---|
| Fields inherited from interface net.conquiris.schema.IsStoredFlag |
|---|
STORED |
| Fields inherited from interface net.conquiris.schema.IsIndexedFlag |
|---|
INDEXED |
| Method Summary | |
|---|---|
Field |
build(Reader reader)
Builds an indexed, tokenized but not stored field with the current term vector information. |
Field |
build(String value)
Builds a field with the current information and the provided value. |
Field |
build(TokenStream tokenStream)
Builds an indexed, tokenized but not stored field with the current term vector information. |
B |
index(Field.Index index)
Sets whether to index the field. |
B |
norms(boolean norms)
Sets whether to store norms. |
B |
tokenize(boolean tokenize)
Sets whether to tokenize the field. |
B |
vector(Field.TermVector vector)
Sets whether to store term vectors. |
| Methods inherited from class net.conquiris.lucene.document.IndexableFieldBuilder |
|---|
index, isIndexed, isStored, store, store, store |
| Methods inherited from class net.derquinse.common.reflect.This |
|---|
thisValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public final B index(@Nullable
Field.Index index)
null.
public final B tokenize(boolean tokenize)
public final B norms(boolean norms)
public final B vector(@Nullable
Field.TermVector vector)
null.
public final Field build(String value)
value - Field value.
IllegalStateException - if the field is neither stored nor indexed.public final Field build(Reader reader)
reader - Field value reader.
IllegalStateException - if the field is neither stored nor indexed.public final Field build(TokenStream tokenStream)
tokenStream - Field value token stream.
IllegalStateException - if the field is neither stored nor indexed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||