The Find and Replace stage uses exact string matching to standardize or remove a set of specific passages, phrases, or words from a document field. This stage is configured with one or more rules. Each rule specifies:Documentation Index
Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
Use this file to discover all available pages before exploring further.
- One or more text strings to search for matching text (phrases or words)
- A single text string that is the replacement value
Fusion blob store setup
Setting up the stage using Fusion’s blob store is referred to as Find - List - Replace. The general procedure for each find/list/replace action is:- Upload a file that contains a list of text passages to be standardized into the Fusion Blob Store.
-
Each file:
- Contains one line for each text passage
- Has a
.lstsuffix
- Document field to scan
-
Name of the
.lstfile uploaded to the blob storeThe.lstsuffix must be included in the file name designated in the rule. - Value of the replacement text
Example
One example could be to remove the country information and replace it with the phrase: country not displayed for security purposes to make the data anonymous for reporting.- The document field to scan is country.
- The name of the
.lstfile in this example iscountry.lst. An excerpt is:
- The value of the replacement text is: country not displayed for security purposes.
country.lst file, it is replaced with the phrase: country not displayed for security purposes.
Fusion UI or REST API setup
Setting up the stage using the Fusion UI or REST API is referred to as Find - Replace. The Fusion UI access path is:- Sign in to Fusion.
- Select the application.
- Select Indexing > Index Workbench.
- Select Add a Stage.
- Select Find and Replace in the Field Transformation section.
-
Enter values in the fields as described in the Configuration section.
The REST API uses the parameters specified below.
- Document field to scan
- List of find/replace pairs