|
||||||||||
| 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.FieldableBuilder<B>
net.conquiris.lucene.document.BaseFieldBuilder<B>
public abstract class BaseFieldBuilder<B extends BaseFieldBuilder<B>>
Base class for field builders. Fields are indexed, tokenized but not stored by default. Term vectors are not stored by default.
| Method Summary | |
|---|---|
org.apache.lucene.document.Field |
build(Reader reader)
Builds an indexed, tokenized but not stored field with the current term vector information. |
org.apache.lucene.document.Field |
build(String value)
Builds a field with the current information and the provided value. |
org.apache.lucene.document.Field |
build(org.apache.lucene.analysis.TokenStream tokenStream)
Builds an indexed, tokenized but not stored field with the current term vector information. |
B |
index(boolean index)
Sets whether to index the field. |
B |
index(org.apache.lucene.document.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(org.apache.lucene.document.Field.TermVector vector)
Sets whether to store term vectors. |
| Methods inherited from class net.conquiris.lucene.document.FieldableBuilder |
|---|
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(boolean index)
public final B index(@Nullable
org.apache.lucene.document.Field.Index index)
null.
public final B tokenize(boolean tokenize)
public final B norms(boolean norms)
public final B vector(@Nullable
org.apache.lucene.document.Field.TermVector vector)
null.
public final org.apache.lucene.document.Field build(String value)
value - Field value.
IllegalStateException - if the field is neither stored nor indexed.public final org.apache.lucene.document.Field build(Reader reader)
reader - Field value reader.
IllegalStateException - if the field is neither stored nor indexed.public final org.apache.lucene.document.Field build(org.apache.lucene.analysis.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 | |||||||||