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.
SMILA/Documentation/2011.Simplification/LuceneSearchPipelet
< SMILA | Documentation | 2011.Simplification
Revision as of 05:21, 28 February 2011 by Andreas.schank.attensity.com (Talk | contribs) (added page for the new LuceneSearchPipelet)
Contents
Bundle: org.eclipse.smila.lucene.pipelets.LuceneSearchPipelet
Description
This pipelet is used to execute a search using the the LuceneSearchService.
Note on implementation: The LuceneSearchService is an own OSGi service named LuceneSearchService.
Configuration
Annotations
The Pipelet itself does not process any annotations, but the underlying LuceneSearchService expects the annotation indexName. For information about the annotations see LuceneSearchService.
Configuration files
The LuceneSearchPipelet itself does not need any configuration. For information on configuring the LuceneSearchService see LuceneSearchService.
Example
The following example shows how the LuceneSearchPipelet is used for a Lucene search.
searchpipeline.bpel
... <extensionActivity> <proc:invokePipelet name="search"> <proc:pipelet name="org.eclipse.smila.lucene.pipelets.LuceneSearchPipelet" /> <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:An> </proc:setAnnotations> </proc:invokePipelet> </extensionActivity> ...