Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
SMILA/Documentation/LuceneSearchPipelet
Contents
Bundle: org.eclipse.smila.lucene.LuceneSearchService
Description
This SearchProcessingService is used to search SMILA records in a Lucene document index.
Configuration
Annotations
The LuceneSearchService uses the Annotation org.eclipse.smila.lucene.LuceneSearchService on records to decide how to handle a record. It supports the following required values.
Name | Value | Description |
---|---|---|
indexName | a String | the name of the index to work on |
Configuration files
The LuceneSearchService uses the same configuration files as the LuceneIndexService:
- configuration/org.eclipse.smila.search.datadictionary/DataDictionary.xml
- configuration/org.eclipse.smila.lucene/Mappings.xml
For details on the configuration files check out LuceneIndexService.
Example
The following example was used in the SMILA example application to search records.
addpipeline.bpel
... <extensionActivity name="invokeLuceneSearchService"> <proc:invokeService> <proc:service name="LuceneSearchService" /> <proc:variables input="request" output="request" /> <proc:setAnnotations> <rec:An n="org.eclipse.smila.lucene.LuceneSearchService"> <rec:V n="indexName">test_index</rec:V> <rec:V n="executionMode">ADD</rec:V> </rec:An> </proc:setAnnotations> </proc:invokeService> </extensionActivity> ...
For configuration file examples please see LuceneIndexService.