Upgrade the existing connectors in NiFi
This section of the tutorial explains the steps that are required to upgrade the existing connectors in NiFi with profit margin customization using Search Ingest Service API.
Important: These instructions are
specific to Groovy ETL. Groovy is not recommended for use in production
environments. The instructions given in this topic and its subtopics are not
relevant if you are using the recommended JavaETL or -Template_DatabaseETL methods.
For instructions that instead use the preferred method, see Create the customization in NiFi.
Note: Refer to Extending Ingest connectors for
more details on updating and upgrading connectors using the Search Ingest Service
API.
Prerequisite
Before you can index the profit margin data, you must load a cost price list using the Catalog Filter and Pricing tool
Process
Complete the following steps to upgrade the existing connectors in NiFi with profit
margin customization using Search Ingest Service API.
- Import the connectors into runtime registry
- Get connector descriptor of the existing connector
- Customize connector descriptor of the existing connector with profit margin customization
- Upgrade connector descriptor of the existing connector
- Verify connector
- Build an index and verify that the profit margin field is indexed
- Customize the user data field name mapping and search configuration to include custom data
- Register the new field in search tables
- Modify the store to display the profit margin only in store preview