Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "SMILA/Documentation/LuceneSearchPipelet"
< SMILA | Documentation
(New page: == Bundle: <tt>org.eclipse.smila.lucene.LuceneSearchService</tt> == === Description === This ProcessingService is used to search SMILA records in a Lucene document index. === Configurati...) |
|||
Line 2: | Line 2: | ||
=== Description === | === Description === | ||
− | This | + | This SearchProcessingService is used to search SMILA records in a Lucene document index. |
=== Configuration === | === Configuration === |
Revision as of 07:01, 25 March 2009
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.