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/LuceneSearchPipelet"

m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Bundle: <tt>org.eclipse.smila.lucene.LuceneSearchService</tt> ==
+
{{Note|Deprecated:
 
+
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 SearchProcessingService is used to search SMILA records in a Lucene document index.
+
 
+
=== Configuration ===
+
 
+
==== Annotations ====
+
The LuceneSearchService uses the Annotation <tt>org.eclipse.smila.lucene.LuceneSearchService</tt> on records to decide how to handle a record. It supports the following required values.
+
{| border = 1
+
!Name!!Value!!Description
+
|-
+
|indexName||a String||the name of the index to work on
+
|}
+
 
+
==== Configuration files ====
+
 
+
The LuceneSearchService uses the same configuration files as the LuceneIndexService:
+
* <tt>configuration/org.eclipse.smila.search.datadictionary/DataDictionary.xml</tt>
+
* <tt>configuration/org.eclipse.smila.lucene/Mappings.xml</tt>
+
 
+
For details on the configuration files check out [[SMILA/Documentation/LuceneIndexService#Configuration_files|LuceneIndexService]].
+
 
+
==== Example ====
+
 
+
The following example was used in the SMILA example application to search records.
+
 
+
'''addpipeline.bpel'''
+
<source lang="xml">
+
...
+
<extensionActivity name="invokeLuceneSearchService">
+
    <proc:invokeService>
+
        <proc:service name="LuceneSearchService" />
+
        <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:V n="executionMode">ADD</rec:V>
+
            </rec:An>
+
        </proc:setAnnotations>
+
    </proc:invokeService>
+
</extensionActivity>
+
...
+
</source>
+
 
+
For configuration file examples please see [[SMILA/Documentation/LuceneIndexService#Example|LuceneIndexService]].
+
 
+
 
+
[[Category:SMILA]] [[Category:SMILA/Processing Service]]
+

Latest revision as of 05:52, 19 January 2012

Note.png
Deprecated: The Lucene integration is outdated. Please take a look at the new Solr integration org.eclipse.smila.solr which is described here: SMILA/Documentation/Solr.

Back to the top