Expert: Set the interval between indexed terms. Large values cause less memory to be used by IndexReader, but slow random-access to terms. Small values cause more memory to be used by an IndexReader, and speed random-access to terms. This parameter determines the amount of computation required per query term, regardless of the number of documents that contain that term. In particular, it is the maximum number of other terms that must be scanned before a term is located and its frequency and position information may be processed. In a large index with user-entered query terms, query processing time is likely to be dominated not by term lookup but rather by the processing of frequency and positional data. In a small index or when many uncommon query terms are generated (e.g., by wildcard queries) term lookup may become a dominant cost. In particular,
CopyC#
numUniqueTerms/interval
terms are read into memory by an IndexReader, and, on average,
CopyC#
interval/2
terms must be scanned for each random term access.

Namespace: Lucene.Net.Index
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public virtual void SetTermIndexInterval(
	int interval
)
Visual Basic
Public Overridable Sub SetTermIndexInterval ( _
	interval As Integer _
)
Visual C++
public:
virtual void SetTermIndexInterval(
	int interval
)

Parameters

interval
Type: System..::..Int32

[Missing <param name="interval"/> documentation for "M:Lucene.Net.Index.IndexWriter.SetTermIndexInterval(System.Int32)"]

See Also