Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "SMILA/Documentation/2011.Simplification/LuceneSearchPipelet"

m (Typo)
(For SMILA 1.0: Simplification pages are obsolete, redirect to SMILA/Documentation/LuceneSearchPipelet)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Bundle: org.eclipse.smila.lucene.pipelets.LuceneSearchPipelet ==
+
#REDIRECT [[SMILA/Documentation/LuceneSearchPipelet]]
 
+
=== Description ===
+
This pipelet is used to execute a search using the [[SMILA/Documentation/LuceneSearchService|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 [[SMILA/Documentation/LuceneSearchService|LuceneSearchService]].
+
 
+
==== Configuration files ====
+
 
+
The LuceneSearchPipelet itself does not need any configuration.
+
For information on configuring the LuceneSearchService see [[SMILA/Documentation/LuceneSearchService|LuceneSearchService]].
+
 
+
==== Example ====
+
 
+
The following example shows how the LuceneSearchPipelet is used for a Lucene search.
+
 
+
'''searchpipeline.bpel'''
+
<source lang="xml">
+
...
+
<extensionActivity>
+
    <proc:invokePipelet name="search">
+
        <proc:pipelet class="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>
+
...
+
</source>
+
 
+
[[Category:SMILA]] [[Category:SMILA/Pipelet]]
+

Latest revision as of 06:35, 19 January 2012

Back to the top