SMILA (incubation) API documentation

org.eclipse.smila.lucene
Class LuceneSearchService

java.lang.Object
  extended by org.eclipse.smila.lucene.LuceneServie
      extended by org.eclipse.smila.lucene.LuceneSearchService
All Implemented Interfaces:
SearchProcessingService

public class LuceneSearchService
extends LuceneServie
implements SearchProcessingService

Lucene Search Service.


Field Summary
static java.lang.String DEFAULT_DATE_FORMAT
          The default date format to use.
static java.lang.String DEFAULT_DATE_TIME_FORMAT
          The default date time format to use.
static java.lang.String MAPPINGS_ATTACHMENTS
          Name of the attachments mapping key.
static java.lang.String MAPPINGS_ATTRIBUTES
          Name of the attributes mapping key.
static java.lang.String RANKING_OPERATOR
          Constant for the SearchAnnotation named value Operator of Annotation ranking.
static java.lang.String RANKING_TOLERANCE
          Constant for the SearchAnnotation named value Tolerance of Annotation ranking.
static java.lang.String SEARCH_ANNOTATION_QUERY_ATTRIBUTE
          Constant for the SearchAnnotation QueryAttribut.
static java.lang.String SEARCH_ANNOTATION_TEMPLATE_SELECTOR_NAME
          Constant for the SearchAnnotation TemplateSelectorName.
 
Fields inherited from class org.eclipse.smila.lucene.LuceneServie
BUNDLE_NAME, CONFIG_FILE_MAPPINGS, ID_FIELD, INDEX_NAME
 
Fields inherited from interface org.eclipse.smila.processing.SearchProcessingService
PROPERTY_NAME
 
Constructor Summary
LuceneSearchService()
           
 
Method Summary
protected  void activate(ComponentContext context)
          DS activate method.
protected  void deactivate(ComponentContext context)
          DS deactivate method.
 SearchMessage process(Blackboard blackboard, SearchMessage message)
          process records on Blackboard service.
 
Methods inherited from class org.eclipse.smila.lucene.LuceneServie
getMappings, loadMappings, unloadMappings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEARCH_ANNOTATION_QUERY_ATTRIBUTE

public static final java.lang.String SEARCH_ANNOTATION_QUERY_ATTRIBUTE
Constant for the SearchAnnotation QueryAttribut. The attribute to use for a default query.

See Also:
Constant Field Values

SEARCH_ANNOTATION_TEMPLATE_SELECTOR_NAME

public static final java.lang.String SEARCH_ANNOTATION_TEMPLATE_SELECTOR_NAME
Constant for the SearchAnnotation TemplateSelectorName.

See Also:
Constant Field Values

RANKING_OPERATOR

public static final java.lang.String RANKING_OPERATOR
Constant for the SearchAnnotation named value Operator of Annotation ranking.

See Also:
Constant Field Values

RANKING_TOLERANCE

public static final java.lang.String RANKING_TOLERANCE
Constant for the SearchAnnotation named value Tolerance of Annotation ranking.

See Also:
Constant Field Values

MAPPINGS_ATTRIBUTES

public static final java.lang.String MAPPINGS_ATTRIBUTES
Name of the attributes mapping key.

See Also:
Constant Field Values

MAPPINGS_ATTACHMENTS

public static final java.lang.String MAPPINGS_ATTACHMENTS
Name of the attachments mapping key.

See Also:
Constant Field Values

DEFAULT_DATE_FORMAT

public static final java.lang.String DEFAULT_DATE_FORMAT
The default date format to use.

See Also:
Constant Field Values

DEFAULT_DATE_TIME_FORMAT

public static final java.lang.String DEFAULT_DATE_TIME_FORMAT
The default date time format to use.

See Also:
Constant Field Values
Constructor Detail

LuceneSearchService

public LuceneSearchService()
Method Detail

activate

protected void activate(ComponentContext context)
                 throws java.lang.Exception
DS activate method.

Parameters:
context - ComponentContext
Throws:
java.lang.Exception - if any error occurs

deactivate

protected void deactivate(ComponentContext context)
                   throws java.lang.Exception
DS deactivate method.

Parameters:
context - the ComponentContext
Throws:
java.lang.Exception - if any error occurs

process

public SearchMessage process(Blackboard blackboard,
                             SearchMessage message)
                      throws ProcessingException
process records on Blackboard service.

Specified by:
process in interface SearchProcessingService
Parameters:
blackboard - Blackboard service managing the records.
message - Ids of query record and records to process.
Returns:
Ids of query record and result records.
Throws:
ProcessingException - error during processing.
See Also:
SearchProcessingService.process(org.eclipse.smila.blackboard.Blackboard, org.eclipse.smila.processing.SearchMessage)

SMILA (incubation) API documentation