Remove Documents from AI Search
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday - last edited Thursday
Good day folks,
Looking for assistance on removing Documents from being searched on ESC. I am certain I'm missing something in the configuration but I do believe this was OOB configuration. Reviewing the screen shots attached, we have a catalog item where we add attachments and upon AI Search it looks like it appears in the list.
When I go through the Indexed Sources and at the requested item source, I do see that there is a configuration to exclude attachments. I don't think this is the correct area for me to look but I couldn't find anything on the catalog item table that has any configuration for attachments to be included.
Hoping someone could steer me in the right direction as I'm getting lost myself in troubleshooting.
Thank you all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
Hello! This is a very common scenario and usually points to one of two settings involving attachments and AI Search.
You are correct that the setting is not on the Catalog Item itself, but rather on the tables being indexed. Since you are seeing the documents appear, the data is definitely being indexed.
Here is how to steer your troubleshooting:
1. Primary Fix: Exclude Attachments Globally
The fastest and most common fix is to ensure the system-level exclusion for attachments is correctly set for the Request Item table (sc_req_item).
The Issue: When a document is attached to a Catalog Item request via the portal, that attachment ultimately gets stored on the associated Request Item (sc\_req\_item) or Attachment (sys\_attachment) tables. If these attachments are indexed, they will appear in search results.
The Solution: The key control is a System Property that governs whether attachments are indexed for AI Search.
Action: Check the property record for glide.service_portal.search.enable_all_attachments.
Expected Value: This property should be set to false or removed entirely, or a related property governing attachment indexing for the specific table is overriding it.
2. Secondary Fix: Adjust the AI Search Source
If the global property doesn't work, you need to go back to the Search Source you mentioned and ensure the exclusion condition is applied correctly.
The Search Source: Navigate to AI Search > Search Administration > Search Sources. Find the search source responsible for indexing Catalog Item requests (it may be named "Requested Items" or similar).
The Exclusion: Look at the Script or Condition that defines what records are returned. Even if the attachment indexer is disabled, the script might still be bringing in the sc_req_item record, and AI Search is then displaying the file content it found linked to that record.
Steering Tip: Look for the dedicated system setting that manages which tables are specifically excluded from attachment indexing. In many instances, the system manages this via the Index Attachment for Table record list (csh\_index\_attachment\_for\_table). If the sc\_req\_item table is listed here and set to True, the attachments will be indexed regardless of other settings.
Key Takeaway
The fact that the documents appear means they are being indexed. This indexing is controlled either by a general System Property or a setting specific to the sc_req_item table's attachment indexing scope.
Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Thank you @nicoleowens for the reply. I'll look into your suggestions and see what I can find as I appreciate the breakdown.
Regarding your #1 primary fix, the situation we are experiencing (like other catalog items we have) we included the attachments right at the catalog item and it's not added via the portal or added by the submitter. However I'll review the fixes provided and will update you.
Overall, I think if I'm unable to apply the fixes you provided another win would be to remove the option to "View Record" from the submitter as essentially that allows them to view the catalog item. Would you by chance have any thoughts on this?
Appreciate your input again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Removing the "View Record" option is an excellent way to enforce access control from the user experience (UX) perspective, especially if the user shouldn't see the underlying record containing the indexed attachment. If my answer proves helpful, please mark as helpful or accept the solution to help other people.
