org.eaglei.search.provider.lucene
Class LuceneSearchProviderProperties

java.lang.Object
  extended by org.eaglei.search.config.SearchProperties
      extended by org.eaglei.search.provider.lucene.LuceneSearchProviderProperties

public final class LuceneSearchProviderProperties
extends org.eaglei.search.config.SearchProperties

Extension of SearchProperties that contains properties for the LuceneProvider.

Author:
frost

Field Summary
static long DEFAULT_UPDATE_FREQ
          Default update frequency
static java.lang.String LUCENE_INDEX_DIR_PROP
          Name of SearchConfiguration property that holds a directory on classpath where provider looks for lucene index
static java.lang.String UPDATE_FREQUENCY
          System property that holds the index update frequency in msec.
 
Fields inherited from class org.eaglei.search.config.SearchProperties
CENTRAL, CENTRAL_INDEX, SEARCH_TEST, USE_INDEXER_THREAD
 
Constructor Summary
LuceneSearchProviderProperties()
           
 
Method Summary
static org.apache.lucene.analysis.Analyzer getAnalyzer()
          Creates the Lucene Analyzer to use for searching and indexing.
static org.apache.lucene.store.Directory getDirectory()
          Retrieves the Lucene Directory to use as a search index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPDATE_FREQUENCY

public static final java.lang.String UPDATE_FREQUENCY
System property that holds the index update frequency in msec.

See Also:
Constant Field Values

DEFAULT_UPDATE_FREQ

public static final long DEFAULT_UPDATE_FREQ
Default update frequency

See Also:
Constant Field Values

LUCENE_INDEX_DIR_PROP

public static final java.lang.String LUCENE_INDEX_DIR_PROP
Name of SearchConfiguration property that holds a directory on classpath where provider looks for lucene index

See Also:
Constant Field Values
Constructor Detail

LuceneSearchProviderProperties

public LuceneSearchProviderProperties()
Method Detail

getDirectory

public static org.apache.lucene.store.Directory getDirectory()
                                                      throws java.io.IOException
Retrieves the Lucene Directory to use as a search index.

Returns:
Lucene Directory.
Throws:
java.io.IOException - Thrown if an error is encountered.

getAnalyzer

public static org.apache.lucene.analysis.Analyzer getAnalyzer()
Creates the Lucene Analyzer to use for searching and indexing.

Returns:
Analyzer.


Copyright © 2009-2011 Eagle-I. All Rights Reserved.