Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be 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/Solr Integration"

(New page: == <tt>org.eclipse.smila.integration.solr.SolrIndexPipelet</tt> == === Description === This pipelet integrates Apache Solr's HTTP REST API ([http://wiki.apache.org/solr/SearchHandler?act...)
 
(Configuration)
Line 20: Line 20:
 
|-
 
|-
 
|indexName||optional||the name of the index/core on which Solr should operate. Currently we do not support more than one index/core.
 
|indexName||optional||the name of the index/core on which Solr should operate. Currently we do not support more than one index/core.
|-
 
|highlight||optional||the highlight flag, default is true
 
|-
 
|highlight.params||optional||all the highlighting parameter passed directly to Solr. For more details please see: [http://wiki.apache.org/solr/HighlightingParameters http://wiki.apache.org/solr/HighlightingParameters]
 
 
|}
 
|}
  

Revision as of 12:17, 8 March 2011

org.eclipse.smila.integration.solr.SolrIndexPipelet

Description

This pipelet integrates Apache Solr's HTTP REST API (http://wiki.apache.org/solr/SearchHandler?action=show&redirect=StandardRequestHandler and http://wiki.apache.org/solr/UpdateXmlMessages ) for adding and deleting records in an Solr index. Therefore it is now possible to build large volume search applications by basing them on SMILA and deploying Solr for coping with large indices which are not manageable on one node because of their large size which exceeds the limits of the node's file system.

Note: Currently this pipelet supports Solr 1.4. The integration of features added with the release of Solr 1.5 will be done in near future.

Configuration

Property Constraint Description
executionMode optional the execution mode of the pipelet, default is ADD
allowDoublets optional the instruction for Solr if doublets are allowed, default is false
commitWithin optional the commit interval for Solr in miliseconds, default is 10000
indexName optional the name of the index/core on which Solr should operate. Currently we do not support more than one index/core.

Example

PipeletConfiguration for SolrIndexPipelet in addpipeline.bpel

<extensionActivity>
  <proc:invokePipelet name="invokeSolrPipelet">
    <proc:pipelet class="org.eclipse.smila.integration.solr.SolrIndexPipelet" />
    <proc:variables input="request" />
    <proc:configuration>
      <rec:Val key="executionMode">ADD</rec:Val>
      <rec:Val key="allowDoublets" type="boolean">false</rec:Val>
      <rec:Val key="commitWithin" type="long">10000</rec:Val>
      <rec:Val key="indexName">test_index</rec:Val>
    </proc:configuration>
  </proc:invokePipelet>
</extensionActivity>

org.eclipse.smila.integration.solr.SolrSearchPipelet

Description

This pipelet integrates Apache Solr's HTTP REST API (http://wiki.apache.org/solr/SearchHandler?action=show&redirect=StandardRequestHandler and http://wiki.apache.org/solr/UpdateXmlMessages ) for searching in an Solr index.

Note: Currently this pipelet supports Solr 1.4. The integration of features added with the release of Solr 1.5 will be done in near future.

Configuration

Property Constraint Description
highlight optional the highlight flag, default is true
highlight.params optional all the highlighting parameter passed directly to Solr. For more details please see: http://wiki.apache.org/solr/HighlightingParameters

PipeletConfiguration for SolrSearchPipelet in searchpipeline.bpel

<extensionActivity>
  <proc:invokePipelet name="invokeSolrPipelet">
    <proc:pipelet class="org.eclipse.smila.integration.solr.SolrSearchPipelet" />
    <proc:variables input="request" />
    <proc:configuration>
      <rec:Seq key="shards">
        <rec:Val>localhost:8983/solr</rec:Val>
      </rec:Seq>
      <rec:Val key="highlight" type="boolean">true</rec:Val>
      <rec:Seq key="highlight.params">
        <rec:Val>hl.fl=Content</rec:Val>
        <rec:Val>hl.snippets=3</rec:Val>
        <rec:Val>hl.simple.pre=&lt;b&gt;</rec:Val>
        <rec:Val>hl.simple.post=&lt;/b&gt;</rec:Val>
        <rec:Val>hl.fragsize=300</rec:Val>
        <rec:Val>hl.mergeContiguous=false</rec:Val>
      </rec:Seq>
    </proc:configuration>
  </proc:invokePipelet>
</extensionActivity>

Back to the top