Limiting Discoverable Items (2)
With Enterprise Search (formerly Discovery Search) and Shinydocs Pro, you are able to filter which search results are viewable by all users and, conversely, which search results should never be displayed to your users.
Shinydocs Pro: “Limiting Discoverable Items” banner is showing
![](../../../__attachments/2934439948/image-20231002-194105.png?inst-v=a2f19e55-bd78-411b-acf5-c83ab3304b0e)
If this banner is showing at the top of your Enterprise Search home screen, this can be cleared by entering the Admin page for your Shinydocs Pro website: https://<server url:port>/admin
You will need to (see screenshot below):
Select Public schematypes from the left navigation menu
click the X to the left of filesystem (if present), then
click Save Changes
Restart IIS from the Internet Information Services (IIS) Manager
This should clear the banner after restarting IIS.
Updating the Web.config file
Edit Discovery Server’s Web.config file by updating the SearchableFieldEnabled key. Set the value=”true”
Save
Restart the Discovery Search site in IIS
Adding the searchable script
To ensure an item will appear in Discovery Server search results, the item must be tagged as 'searchable’.
Open Visualizer
Copy the following script into the Dev Tools in Visualizer
CODEPOST /shiny/_update_by_query?conflicts=proceed { "script": { "source": "ctx._source.searchable = params.searchable", "lang": "painless", "params": { "searchable": true } }, "query": { "match": { "_id": "cbbe97d86d5f5768093cfc4615c1e0e643ba4e47" } } }
Enter the ID of the item you want to tag in the id field (line 12)
Items with the searchable field set to "true" (line 7), will appear in search results.
Items with the searchable field set to "false" (line 7), will NOT appear in search results and will return the following message:
Using Kerberos
Configuring Kerberos is documented in this article: https://help.shinydocs.com/cognitive-suite/2.10.0/kerberos-authentication-setup