org.compass.core.lucene
Class RuntimeLuceneEnvironment.SearchEngineIndex

java.lang.Object
  extended by org.compass.core.lucene.RuntimeLuceneEnvironment.SearchEngineIndex
Enclosing class:
RuntimeLuceneEnvironment

public abstract static class RuntimeLuceneEnvironment.SearchEngineIndex
extends Object

Specific environment settings for the batch_insert settings.


Field Summary
static String MAX_BUFFERED_DELETED_TERMS
          Determines the minimal number of delete terms required before the buffered in-memory delete terms are applied and flushed.
static String MAX_BUFFERED_DOCS
          Determines the minimal number of documents required before the buffered in-memory documents are flushed as a new Segment.
static String MAX_MERGE_DOCS
          Determines the largest segment (measured by document count) that may be merged with other segments.
static String MERGE_FACTOR
          Determines how often segment indices are merged by addDocument().
static String RAM_BUFFER_SIZE
          Determines the amount of RAM that may be used for buffering added documents before they are flushed as a new Segment.
 
Constructor Summary
RuntimeLuceneEnvironment.SearchEngineIndex()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_MERGE_DOCS

public static final String MAX_MERGE_DOCS

Determines the largest segment (measured by document count) that may be merged with other segments. Small values (e.g., less than 10,000) are best for interactive indexing, as this limits the length of pauses while indexing to a few seconds. Larger values are best for batched indexing and speedier searches.

The default value is Integer.MAX_VALUE.

See Also:
Constant Field Values

MERGE_FACTOR

public static final String MERGE_FACTOR
Determines how often segment indices are merged by addDocument(). With smaller values, less RAM is used while indexing, and searches on unoptimized indices are faster, but indexing speed is slower. With larger values, more RAM is used during indexing, and while searches on unoptimized indices are slower, indexing is faster. Thus larger values (> 10) are best for batch index creation, and smaller values (< 10) for indices that are interactively maintained.

Defaults to 10.

See Also:
Constant Field Values

MAX_BUFFERED_DOCS

public static final String MAX_BUFFERED_DOCS
Determines the minimal number of documents required before the buffered in-memory documents are flushed as a new Segment. Large values generally gives faster indexing.

When this is set, the writer will flush every maxBufferedDocs added documents. Pass in IndexWriter.DISABLE_AUTO_FLUSH to prevent triggering a flush due to number of buffered documents. Note that if flushing by RAM usage is also enabled, then the flush will be triggered by whichever comes first.

Disabled by default (writer flushes by RAM usage).

See Also:
Constant Field Values

MAX_BUFFERED_DELETED_TERMS

public static final String MAX_BUFFERED_DELETED_TERMS

Determines the minimal number of delete terms required before the buffered in-memory delete terms are applied and flushed. If there are documents buffered in memory at the time, they are merged and a new segment is created.

Disabled by default (writer flushes by RAM usage).

See Also:
Constant Field Values

RAM_BUFFER_SIZE

public static final String RAM_BUFFER_SIZE
Determines the amount of RAM that may be used for buffering added documents before they are flushed as a new Segment. Generally for faster indexing performance it's best to flush by RAM usage instead of document count and use as large a RAM buffer as you can.

When this is set, the writer will flush whenever buffered documents use this much RAM. Pass in IndexWriter.DISABLE_AUTO_FLUSH to prevent triggering a flush due to RAM usage. Note that if flushing by document count is also enabled, then the flush will be triggered by whichever comes first.

The default value is IndexWriter.DEFAULT_RAM_BUFFER_SIZE_MB.

See Also:
Constant Field Values
Constructor Detail

RuntimeLuceneEnvironment.SearchEngineIndex

public RuntimeLuceneEnvironment.SearchEngineIndex()


Copyright (c) 2004-2008 The Compass Project.