Get started
Clone the repository to get started:
See Gradle quickstart documentation for more information on Java Projects.
SolrJ was upgraded from 8.11.x to 9.4.1 in Fusion 5.9.16.
In SolrJ 9.x,
CloudSolrClient uses HTTP2 by default, and HTTP2 connections are not supported by pipeline services in Fusion 5.x.
When developing custom query stages, use CloudLegacySolrClient instead of CloudSolrClient or CloudHttp2SolrClient for Solr connections.Query Stage SDK library
The Java SDK library contains the classes and interfaces for building new query plugin stages. It is located in thequery-stage-plugin-sdk directory.
Example plugin stage
The example query stage plugin contains an example of how a plugin can be implemented as well as information on how to build and deploy the plugin. It is located in theexamples/sample-plugin-stage directory.
The sample plugin stage is an example project with two simple querying stages:
UpdateRequestStage.java- Add a new query parameter with a specific value to each query request.UpdateResponseStage.java- Add a new field with a specific value to each query response.
1. Build the plugin stage
From the main folder, call:.zip file (with required manifest file) inside the build/libs folder.
2. Deploy the stage
You can choose from several different ways to deploy the sample plugin stage:- Upload it to the blob store.
- Use Gradle.
- Use the REST API.
Stages list in the Fusion Query Pipelines UI.
Upload it to the blob store
- Navigate to System > Blobs.
- Click Add.
- Select Query Stage Plugin.
- Click Browse and select your plugin file.
- Click Upload