org.apache.lucene.document

Class Field.Store

public static final class Field.Store extends Parameter implements Serializable

Specifies whether and how a field should be stored.
Field Summary
static Field.StoreCOMPRESS
Store the original field value in the index in a compressed form.
static Field.StoreNO
Do not store the field value in the index.
static Field.StoreYES
Store the original field value in the index.

Field Detail

COMPRESS

public static final Field.Store COMPRESS
Store the original field value in the index in a compressed form. This is useful for long documents and for binary valued fields.

NO

public static final Field.Store NO
Do not store the field value in the index.

YES

public static final Field.Store YES
Store the original field value in the index. This is useful for short texts like a document's title which should be displayed with the results. The value is stored in its original form, i.e. no analyzer is used before it is stored.
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.