lucidworks/fusion-solr-plugins

Name: fusion-solr-plugins

Owner: Lucidworks

Description: Plugins for Solr to communicate with Fusion query and index pipelines

Created: 2015-05-11 22:48:12.0

Updated: 2018-02-21 06:55:25.0

Pushed: 2015-08-06 23:48:59.0

Homepage: null

Size: 170

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

fusion-solr-plugins

Plugins for Solr to communicate with Fusion query and index pipelines. Solr plugins approach should be used when direct integration of the application with Fusion query and index pipelines is not possible (WebSphere, Hybris).

The jar file is compiled with Oracle JDK 1.6 and can be downloaded from releases.

Downloadable Jar

Download the latest jar file from releases

Build jar files locally

Create the search cluster and import the Solr collection to Fusion

Configuring Fusion query-pipelines for the plugins

Configure solrconfig.xml to use Fusion Query Pipelines

Configure Solr DIH to use Fusion Index Pipelines

  1. Add the jar file location to the solrconfig.xml config file for the collection that you would like to use.

    <lib dir="$FUSION_HOME/solr-plugins/fusion"/>
    
  2. Add the update processor FusionUpdateProcessorFactory to the solrconfig.xml

     <updateRequestProcessorChain name="sendDocsToFusion">
        <processor class="com.lucidworks.solr.fusion.FusionUpdateProcessorFactory">
             <bool name="enabled">true</bool>
             <str name="fusion_base_url">http://admin:password123@localhost:8764/api/apollo</str>
             <str name="collection_name">{collection_name}</str>
        </processor>
        <processor class="solr.LogUpdateProcessorFactory" />
        <processor class="solr.RunUpdateProcessorFactory" />
      </updateRequestProcessorChain>
    
  3. Configure the DIH request handler with the update chain

      <requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
        <lst name="defaults">
            <str name="config">wc-data-config.xml</str>
          <str name="update.chain">sendDocsToFusion</str>
            <!-- Enable if using dynamic spellCheck field. 
            <str name="update.chain">wc-conditionalCopyFieldChain</str> 
            -->
        </lst>
      </requestHandler>
    
  4. Note: This is a very slow process since each doc is sent to Fusion one by one.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.