SMILA (incubation) API documentation

org.eclipse.smila.lucene
Class LuceneServie

java.lang.Object
  extended by org.eclipse.smila.lucene.LuceneServie
Direct Known Subclasses:
LuceneIndexService, LuceneSearchService

public abstract class LuceneServie
extends java.lang.Object

Abstract base class for services dealing with Lucene.


Field Summary
static java.lang.String BUNDLE_NAME
          name of bundle.
static java.lang.String CONFIG_FILE_MAPPINGS
          name of configuration file.
static java.lang.String ID_FIELD
          Name of the Lucene index field containing the id value.
static java.lang.String INDEX_NAME
          name of annotation configuring the index to work with.
 
Constructor Summary
LuceneServie()
           
 
Method Summary
protected  java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Integer>>> getMappings()
          Returns the mappings.
protected  void loadMappings()
          Loads the mappings.
protected  void unloadMappings()
          Unloads the mappings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUNDLE_NAME

public static final java.lang.String BUNDLE_NAME
name of bundle. Used in configuration reading.

See Also:
Constant Field Values

CONFIG_FILE_MAPPINGS

public static final java.lang.String CONFIG_FILE_MAPPINGS
name of configuration file. Hardcoded for now (or fallback), configuration properties should be received from configuration service later.

See Also:
Constant Field Values

INDEX_NAME

public static final java.lang.String INDEX_NAME
name of annotation configuring the index to work with.

See Also:
Constant Field Values

ID_FIELD

public static final java.lang.String ID_FIELD
Name of the Lucene index field containing the id value.

See Also:
Constant Field Values
Constructor Detail

LuceneServie

public LuceneServie()
Method Detail

loadMappings

protected void loadMappings()
Loads the mappings.


unloadMappings

protected void unloadMappings()
Unloads the mappings.


getMappings

protected java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Integer>>> getMappings()
Returns the mappings.

Returns:
the mappings.

SMILA (incubation) API documentation