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)
(Example)
Line 28: Line 28:
 
         <proc:pipelet class="org.eclipse.smila.lucene.pipelets.LuceneSearchPipelet" />
 
         <proc:pipelet class="org.eclipse.smila.lucene.pipelets.LuceneSearchPipelet" />
 
         <proc:variables input="request" output="request" />
 
         <proc:variables input="request" output="request" />
         <proc:setAnnotations>
+
         <proc:configuration>
             <rec:An n="org.eclipse.smila.lucene.LuceneSearchService">
+
             <rec:Val key="index">test_index</rec:Val>
                <rec:V n="indexName">test_index</rec:V>
+
         </proc:configuration>
            </rec:An>
+
         </proc:setAnnotations>
+
 
     </proc:invokePipelet>
 
     </proc:invokePipelet>
 
</extensionActivity>
 
</extensionActivity>
 
...
 
...
 
</source>
 
</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]]
 
[[Category:SMILA]] [[Category:SMILA/Pipelet]]

Revision as of 11:18, 8 March 2011

Bundle: org.eclipse.smila.lucene.pipelets.LuceneSearchPipelet

Description

This pipelet is used to execute a search using 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 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>
...

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.

Back to the top