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"

(Configuration)
(For SMILA 1.0: Simplification pages are obsolete, redirect to SMILA/Documentation/LuceneSearchPipelet)
 
(4 intermediate revisions by 2 users 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 ===
+
 
+
 
+
 
+
==== Configuration ====
+
 
+
The LuceneSearchPipelet itself does not need any configuration, but the pipelet configuration part may be used to set default values for query parameters that are not set in the request records.
+
 
+
For information on how to configuration the Lucene integration service itself see [[SMILA/Documentation/2011.Simplification/LuceneIndexPipelet]].
+
 
+
==== 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:configuration>
+
            <rec:Val key="index">test_index</rec:Val>
+
        </proc:configuration>
+
    </proc:invokePipelet>
+
</extensionActivity>
+
...
+
</source>
+
 
+
This sets a default index to search in, if the search request does not contain the "index" parameter itself. Default values for other query parameters may be set here in the same way.
+
 
+
[[Category:SMILA]] [[Category:SMILA/Pipelet]]
+

Latest revision as of 06:35, 19 January 2012

Back to the top