public static final class

IndexWriter.MaxFieldLength

extends Object
java.lang.Object
   ↳ org.apache.lucene.index.IndexWriter.MaxFieldLength

Class Overview

Specifies maximum field length (in number of tokens/terms) in IndexWriter constructors. setMaxFieldLength(int) overrides the value set by the constructor.

Summary

Fields
public static final IndexWriter.MaxFieldLength LIMITED Sets the maximum field length to DEFAULT_MAX_FIELD_LENGTH
public static final IndexWriter.MaxFieldLength UNLIMITED Sets the maximum field length to MAX_VALUE.
Public Constructors
IndexWriter.MaxFieldLength(int limit)
Public constructor to allow users to specify the maximum field size limit.
Public Methods
int getLimit()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final IndexWriter.MaxFieldLength LIMITED

Sets the maximum field length to DEFAULT_MAX_FIELD_LENGTH

public static final IndexWriter.MaxFieldLength UNLIMITED

Sets the maximum field length to MAX_VALUE.

Public Constructors

public IndexWriter.MaxFieldLength (int limit)

Public constructor to allow users to specify the maximum field size limit.

Parameters
limit The maximum field length

Public Methods

public int getLimit ()

public String toString ()