| java.lang.Object org.apache.lucene.document.AbstractField
All known Subclasses: org.apache.lucene.document.Field,
AbstractField | abstract public class AbstractField implements Fieldable(Code) | | |
Method Summary | |
public float | getBoost() Returns the boost factor for hits for this field. | public boolean | getOmitNorms() | final public boolean | isBinary() | final public boolean | isCompressed() | final public boolean | isIndexed() True iff the value of the field is to be indexed, so that it may be
searched on. | public boolean | isLazy() | public boolean | isStoreOffsetWithTermVector() True iff terms are stored as term vector together with their offsets
(start and end positon in source text). | public boolean | isStorePositionWithTermVector() True iff terms are stored as term vector together with their token positions. | final public boolean | isStored() True iff the value of the field is to be stored in the index for return
with search hits. | final public boolean | isTermVectorStored() True iff the term or terms used to index this field are stored as a term
vector, available from
org.apache.lucene.index.IndexReader.getTermFreqVector(intString) .
These methods do not provide access to the original content of the field,
only to terms used to index it. | final public boolean | isTokenized() True iff the value of the field should be tokenized as text prior to
indexing. | public String | name() Returns the name of the field as an interned string. | public void | setBoost(float boost) Sets the boost factor hits on this field. | public void | setOmitNorms(boolean omitNorms) Expert:
If set, omit normalization factors associated with this indexed field. | protected void | setStoreTermVector(Field.TermVector termVector) | final public String | toString() Prints a Field for human consumption. |
boost | protected float boost(Code) | | |
isBinary | protected boolean isBinary(Code) | | |
isCompressed | protected boolean isCompressed(Code) | | |
isIndexed | protected boolean isIndexed(Code) | | |
isStored | protected boolean isStored(Code) | | |
isTokenized | protected boolean isTokenized(Code) | | |
lazy | protected boolean lazy(Code) | | |
omitNorms | protected boolean omitNorms(Code) | | |
storeOffsetWithTermVector | protected boolean storeOffsetWithTermVector(Code) | | |
storePositionWithTermVector | protected boolean storePositionWithTermVector(Code) | | |
storeTermVector | protected boolean storeTermVector(Code) | | |
AbstractField | protected AbstractField()(Code) | | |
getOmitNorms | public boolean getOmitNorms()(Code) | | True if norms are omitted for this indexed field
|
isBinary | final public boolean isBinary()(Code) | | True iff the value of the filed is stored as binary
|
isCompressed | final public boolean isCompressed()(Code) | | True if the value of the field is stored and compressed within the index
|
isIndexed | final public boolean isIndexed()(Code) | | True iff the value of the field is to be indexed, so that it may be
searched on.
|
isLazy | public boolean isLazy()(Code) | | |
isStoreOffsetWithTermVector | public boolean isStoreOffsetWithTermVector()(Code) | | True iff terms are stored as term vector together with their offsets
(start and end positon in source text).
|
isStorePositionWithTermVector | public boolean isStorePositionWithTermVector()(Code) | | True iff terms are stored as term vector together with their token positions.
|
isStored | final public boolean isStored()(Code) | | True iff the value of the field is to be stored in the index for return
with search hits. It is an error for this to be true if a field is
Reader-valued.
|
isTokenized | final public boolean isTokenized()(Code) | | True iff the value of the field should be tokenized as text prior to
indexing. Un-tokenized fields are indexed as a single word and may not be
Reader-valued.
|
name | public String name()(Code) | | Returns the name of the field as an interned string.
For example "date", "title", "body", ...
|
setOmitNorms | public void setOmitNorms(boolean omitNorms)(Code) | | Expert:
If set, omit normalization factors associated with this indexed field.
This effectively disables indexing boosts and length normalization for this field.
|
toString | final public String toString()(Code) | | Prints a Field for human consumption.
|
|
|