Lucidworks Fusion 5 Configuration

Create new App

You can skip this step if there is already an app you want to use the connector for.

Navigate to App Launcher to create a new app.

Create App

Create Technical Account

It is recommended to create a dedicated technical user account for the connector restricted to the intended API permissions. In order to create a new user navigate to SystemAccess ControlUsers.

Create App

The connector requires at least the API permission HEAD,POST,GET,DELETE,PUT:/index-pipelines/** to consume the Indexing Pipeline API.

Create Technical Account
The created technical account credentials has to be specified in the connector configuration. Note, that the connector supports only the authentication via native realm. Make sure to select the native realm when creating the technical account.

Configure Index Pipeline

The connector processes binary content as Base64 encoded text into target Solr collection. Hence, it is recommended to include the Tika parser into your indexing pipeline.

Create Content Collection

If you use an existing collection within your app to index your documents, you can skip this step. To create a new collection navigate to IndexingCollection Manager within your app.

Create Tika Parser

As the connector does not apply any advanced binary content processing before indexing the documents, it is recommended to use the Apache Tika Parser provided by Fusion. Navigate to IndexingParsersAdd+ to add a new parser to your app. Remove all default parsers and add the Tika Parser to the list of parsers.

Parsers
Parsers

Set the Document ID Source Field to id and set the content encoding to binary.

Include the Parser to Index Pipeline

Navigate to IndexingIndex Pipelines.

Parsers

Include the Field Parser Stage to your pipeline. Set the Parser ID to the ID of the parser created in previous step. Make sure to set the Source Field to raw_content and Source Field Encoding the base64.

Parsers
The configured Index Pipeline has to be specified in the connector configuration under BasicLucidworks Fusion 5Indexing SettingsIndexing Pipeline.

Configure Principal Index Pipeline

In addition to the content collection, the connector requires a separate collection and index pipeline for indexing principal information to Fusion.

Create Principal Collection

If you use an existing collection within your app to index your documents, you can skip the step. To create a new collection navigate to Collections → Collection Manager within your App launcher.

Collection Manager

Create a new principal collection by typing the collection name and submitting Save Collection.

Create Collection

Create Indexing Pipeline

If you have already a indexing pipeline attached to your principal collection, you can skip this step. Note, that you should not reuse the content indexing pipeline, but maintain separate pipelines for content and principal indexing instead.

Navigate to Indexing → Index Pipelines.

Index Pipelines

Create a new index pipeline by typing the ID and Save. Keep the default settings and stages.

Create Principal Index Pipeline

Configure Query Pipeline

Raytion Security Trimming Stage

If your Fusion Query Pipeline does not include the Security Trimming Stage, it will return all documents that match the search query. It will not consider the Access Control of the indexed documents. Upload the Raytion Security Trimming Stage as Managed Javascript Query Stage and include it into your query pipeline. The stage can be found at /scripts as raytion-security-trimming-stage.js inside your connector installation.

To upload the stage, navigate to System → Blobs within your App.

Blob Store

Select Managed Javascript (Query) and upload the file raytion-security-trimming-stage.js.

Managed Javascript Query Stage
Uploaded Blob File

Once the file is uploaded, it can be configured in your query pipeline. Navigate to QueryingQuery Pipelines.

Parsers

Click on Add a new pipeline stage and select Managed Javascript. Select the file raytion-security-trimming-stage.js.

Raytion Security Trimming

The stage expects following request parameters to be set:

Parameter Name Description

username

Username for the search user. This value needs to match the id field for one of the users ingested into your principal collection.

sidecar

The name of the principal collection configured at step: Create Principal Collection

datasource (optional)

The ID of the datasource configured in the connector configuration under Basic → Lucidworks Fusion 5 → Data Source Configuration → Data Source ID. The connector appends for items and principals this value into field _lw_data_source_id to distinguish items and principals from different source systems in the same collection. By specifying this value in the parameter, you can restrict your search result to this data source.

Within your Query Workbench you can set them in the parameter list as shown in the screenshot below.

Without the Raytion Security Trimming Stage, all items will be visible through your query pipeline. Make sure to include the stage to your pipeline and to force the presence of the required parameters.