|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.lucene.LuceneEnvironment.SearchEngineIndex
public abstract static class LuceneEnvironment.SearchEngineIndex
Specific environment settings for the batch_insert settings.
| Field Summary | |
|---|---|
static String |
CACHE_ASYNC_INVALIDATION
Sets if invalidation of cache will happen in the background or not. |
static String |
CACHE_INTERVAL_INVALIDATION
Sets how often (in milliseconds) the index manager will check if the index cache needs to be invalidated. |
static long |
DEFAULT_CACHE_INTERVAL_INVALIDATION
The default cache interval invalidation. |
static String |
INDEX_MANAGER_SCHEDULE_INTERVAL
The index manager schedule interval where different actions related to index manager will happen (such as global cache interval checks). |
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_FIELD_LENGTH
The maximum number of terms that will be indexed for a single field in a document. |
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. |
static String |
TERM_INDEX_INTERVAL
Expert: Set the interval between indexed terms. |
static String |
USE_COMPOUND_FILE
Setting to turn on usage of a compound file. |
static String |
USE_CONCURRENT_OPERATIONS
Should concurrent operations be performed during a transaction against the search engine index store. |
static String |
WAIT_FOR_CACHE_INVALIDATION_ON_INDEX_OPERATION
Defaults to false. |
| Constructor Summary | |
|---|---|
LuceneEnvironment.SearchEngineIndex()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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.
public static final String MERGE_FACTOR
Defaults to 10.
public static final String MAX_BUFFERED_DOCS
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).
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).
public static final String TERM_INDEX_INTERVAL
numUniqueTerms/interval terms are read into
memory by an IndexReader, and, on average, interval/2 terms
must be scanned for each random term access.
IndexWriter.DEFAULT_TERM_INDEX_INTERVAL,
Constant Field Valuespublic static final String RAM_BUFFER_SIZE
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.
public static final String USE_COMPOUND_FILE
true
public static final String USE_CONCURRENT_OPERATIONS
true.
public static final String MAX_FIELD_LENGTH
public static final String CACHE_INTERVAL_INVALIDATION
5000. Setting it to
0 means that the cache will check if it needs to be invalidated all the time. Setting
it to -1 means that the cache will never check if it needs to
be invalidated, note, that it is perfectly fine if a single instance is
manipulating the index. It works, since the cache is invalidated when a
transaction is committed and a dirty operation has occured.
public static final String CACHE_ASYNC_INVALIDATION
true.
public static final long DEFAULT_CACHE_INTERVAL_INVALIDATION
CACHE_INTERVAL_INVALIDATION,
Constant Field Valuespublic static final String INDEX_MANAGER_SCHEDULE_INTERVAL
-1, not scheduling will happen. Defaults to 60 seconds.
public static final String WAIT_FOR_CACHE_INVALIDATION_ON_INDEX_OPERATION
false. If set to true, will cause index manager operation (including
replace index) to wait for all other Compass instances to invalidate their cache. The wait time will be
the same as the INDEX_MANAGER_SCHEDULE_INTERVAL.
| Constructor Detail |
|---|
public LuceneEnvironment.SearchEngineIndex()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||