Using search scripted post-processors in AI Search application configurations
Use scripted post-processors to modify search result records for display in a search application.
For example, a search scripted post-processor can modify search result date or currency field values to display in the user's regional formats.
Parent Topic:Search application configurations
Create a search scripted post-processor
Define a script to post-process AI Search search results before displaying them to the user.
Before you begin
Role required: search_application_admin
Procedure
Copy code from an existing post-processor script to use as a starting point for your own script.
Select All.
In the Filter field, enter
sys_search_scripted_processor.list.Press Enter.
Open a post-processor script of your choice.
Copy the code from the Post processing script field.
Navigate to All > AI Search > Search Experience > Search Applications.
Open the search application configuration that you want to configure a scripted post-processor for.
In the Search Scripted Post-processors related list, select New.
On the Search Scripted Post-processors form, fill in the fields.
For a description of the field values, see Search Scripted Post-processors form. If you copied code from an existing post-processor script in step 1.e, paste it into the new script's Post processing script field and modify it as needed.
Select Submit.
Result
The new search scripted post-processor appears in the search application configuration's Search Scripted Post-processors related list.
What to do next
To make your new search scripted post-processor take effect, link it to the search application configuration for the application whose results you want to post-process.
Link a search scripted post-processor to an AI Search application configuration
Link a search scripted post-processor to an AI Search search application configuration. The search application executes the linked script for each search result before displaying it to the user.
Before you begin
Role required: search_application_admin
You must have already created the search script post-processor that you want to link to the search application configuration.
Procedure
Navigate to All > AI Search > Search Experience > Search Applications.
Open the search application configuration that you want to link a search scripted post-processor to.
In the Search Scripted Post-processors related list, select New.
On the Search Scripted Post-processors form, select the reference lookup icon
for the **Search scripted processor** field and select the search scripted post-processor that you want to link to the search application configuration.
For a description of the field values, see [Search Scripted Post-processors form](search-script-postprocess-form-ais.md).
- Select Submit.
Result
The new search scripted post-processor appears in the Search Scripted Post-processors related list.