org.apache.lucene.document

Class Field.TermVector

Enclosing Class:
Field
Implemented Interfaces:
Serializable

public static final class Field.TermVector
extends Parameter
implements Serializable

Specifies whether and how a field should have term vectors.

Field Summary

static Field.TermVector
NO
Do not store term vectors.
static Field.TermVector
WITH_OFFSETS
Store the term vector + Token offset information
static Field.TermVector
WITH_POSITIONS
Store the term vector + token position information
static Field.TermVector
WITH_POSITIONS_OFFSETS
Store the term vector + Token position and offset information
static Field.TermVector
YES
Store the term vectors of each document.

Method Summary

Methods inherited from class org.apache.lucene.util.Parameter

readResolve, toString

Field Details

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

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-2006 Apache Software Foundation. All Rights Reserved.