Get started
Clone the repository to get started:| Fusion versions | Query Stage SDK version | Required JDK |
|---|---|---|
| 5.9.15 | 2.0.0 | 11 |
| 5.4.0 through 5.9.14 | 1.0.0 | 8 |
The Query Stage SDK requires use of the Fusion Search DSL, which is deprecated as of Fusion 5.9.4.
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