|
|
Line 1: |
Line 1: |
− | == Bundle: org.eclipse.smila.lucene.pipelets.LuceneSearchPipelet ==
| + | {{Note|Depricated: |
− | | + | The Lucene integration is outdated. Please take a look at the new Solr integration <tt>org.eclipse.smila.solr</tt> which is described here: [[SMILA/Documentation/Solr]].}} |
− | === Description ===
| + | |
− | | + | |
− | This pipelet is used to execute a search using the LuceneSearchService. The LuceneSearchService is one interface provided by the LuceneService which in turn manages the Lucene integration.
| + | |
− | | + | |
− | === Configuration ===
| + | |
− | | + | |
− | ==== Pipelet 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.
| + | |
− | | + | |
− | ==== Service Configuration ====
| + | |
− | | + | |
− | 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="indexname">test_index</rec:Val>
| + | |
− | </proc:configuration>
| + | |
− | </proc:invokePipelet>
| + | |
− | </extensionActivity>
| + | |
− | ...
| + | |
− | </source>
| + | |
− | | + | |
− | This sets a default index to search in in case the search request did 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]]
| + | |