org.apache.lucene.document

Class Field.TermVector

public static final class Field.TermVector extends Parameter implements Serializable

Specifies whether and how a field should have term vectors.
Field Summary
static Field.TermVectorNO
Do not store term vectors.
static Field.TermVectorWITH_OFFSETS
Store the term vector + Token offset information
static Field.TermVectorWITH_POSITIONS
Store the term vector + token position information
static Field.TermVectorWITH_POSITIONS_OFFSETS
Store the term vector + Token position and offset information
static Field.TermVectorYES
Store the term vectors of each document.

Field Detail

NO

public static final Field.TermVector NO
Do not store term vectors.

WITH_OFFSETS

public static final Field.TermVector WITH_OFFSETS
Store the term vector + Token offset information

See Also: YES

WITH_POSITIONS

public static final Field.TermVector WITH_POSITIONS
Store the term vector + token position information

See Also: YES

WITH_POSITIONS_OFFSETS

public static final Field.TermVector WITH_POSITIONS_OFFSETS
Store the term vector + Token position and offset information

See Also: YES WITH_POSITIONS WITH_OFFSETS

YES

public static final Field.TermVector YES
Store the term vectors of each document. A term vector is a list of the document's terms and their number of occurences in that document.
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.