|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.indexer.lucene.LuceneProperties
public class LuceneProperties
Configuration properties for the Lucene index
| Field Summary | |
|---|---|
static java.lang.String |
KEY_LUCENE_INDEX_LOCATION
Key for property "org.openanzo.indexer.lucene.indexLocation" Location of the Lucene index on disk Server:When persistence is enabled on the server, this property points to the location of the Lucene index on disk. Client:The client uses its own Lucene index, so this property is not used. Embedded:See server |
static java.lang.String |
KEY_LUCENE_QUERY_FIELD
Key for property "org.openanzo.indexer.lucene.field" Default field in index that is queried Server:This is the default field in the index that is queried. Client:The client uses its own Lucene index, so this property is not used. Embedded:See server |
static java.lang.String |
KEY_LUCENE_QUERY_TEXT
Key for property "org.openanzo.indexer.lucene.text" Default query text Server:This is the default query text to use. Client:The client uses its own Lucene index, so this property is not used. Embedded:See server |
static java.lang.String |
KEY_LUCENE_REMOVE_LOCK_FILE
Key for property "org.openanzo.indexer.lucene.removeLockFile" Force a removal of a previous lock file on startup. |
| Constructor Summary | |
|---|---|
LuceneProperties()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getField(java.util.Properties properties)
Get KEY_LUCENE_QUERY_FIELD property from properties |
static java.lang.String |
getIndexLocation(java.util.Properties properties)
Get KEY_LUCENE_INDEX_LOCATION property from properties |
static boolean |
getRemoveLockFile(java.util.Properties properties)
Get KEY_LUCENE_REMOVE_LOCK_FILE property from properties |
static java.lang.String |
getText(java.util.Properties properties)
Get KEY_LUCENE_QUERY_TEXT property from properties |
static void |
setField(java.util.Properties properties,
java.lang.String field)
Set KEY_LUCENE_QUERY_FIELD property to field in properties |
static void |
setIndexLocation(java.util.Properties properties,
java.lang.String indexLocation)
Set KEY_LUCENE_INDEX_LOCATION property to indexLocation in properties |
static void |
setRemoveLockFile(java.util.Properties properties,
boolean removeLockFile)
Set KEY_LUCENE_REMOVE_LOCK_FILE property to removeLockFile in properties |
static void |
setText(java.util.Properties properties,
java.lang.String text)
Set KEY_LUCENE_QUERY_TEXT property to text in properties |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String KEY_LUCENE_INDEX_LOCATION
public static final java.lang.String KEY_LUCENE_QUERY_FIELD
public static final java.lang.String KEY_LUCENE_QUERY_TEXT
public static final java.lang.String KEY_LUCENE_REMOVE_LOCK_FILE
| Constructor Detail |
|---|
public LuceneProperties()
| Method Detail |
|---|
public static java.lang.String getIndexLocation(java.util.Properties properties)
KEY_LUCENE_INDEX_LOCATION property from properties
properties - containing configuration data
KEY_LUCENE_INDEX_LOCATION if not present
public static void setIndexLocation(java.util.Properties properties,
java.lang.String indexLocation)
KEY_LUCENE_INDEX_LOCATION property to indexLocation in properties
properties - containing configuration dataindexLocation - value for indexLocationpublic static java.lang.String getField(java.util.Properties properties)
KEY_LUCENE_QUERY_FIELD property from properties
properties - containing configuration data
KEY_LUCENE_QUERY_FIELD if not present
public static void setField(java.util.Properties properties,
java.lang.String field)
KEY_LUCENE_QUERY_FIELD property to field in properties
properties - containing configuration datafield - value for fieldpublic static java.lang.String getText(java.util.Properties properties)
KEY_LUCENE_QUERY_TEXT property from properties
properties - containing configuration data
KEY_LUCENE_QUERY_TEXT if not present
public static void setText(java.util.Properties properties,
java.lang.String text)
KEY_LUCENE_QUERY_TEXT property to text in properties
properties - containing configuration datatext - value for textpublic static boolean getRemoveLockFile(java.util.Properties properties)
KEY_LUCENE_REMOVE_LOCK_FILE property from properties
properties - containing configuration data
KEY_LUCENE_REMOVE_LOCK_FILE,or "true" if not present
public static void setRemoveLockFile(java.util.Properties properties,
boolean removeLockFile)
KEY_LUCENE_REMOVE_LOCK_FILE property to removeLockFile in properties
properties - containing configuration dataremoveLockFile - value for removeLockFile
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||