Skip to main content
Skip table of contents

Limiting Discoverable Items for Shinydocs Pro Search

With 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

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):

  1. Select Public schematypes from the left navigation menu

  2. click the X to the left of filesystem (if present), then

  3. click Save Changes

  4. Restart IIS from the Internet Information Services (IIS) Manager

This should clear the banner after restarting IIS.


Updating the Web.config file

  1. Edit Discovery Server’s Web.config file by updating the SearchableFieldEnabled key. Set the value=”true”

  2. Save

  3. 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’.

  1. Open Visualizer

  2. Copy the following script into the Dev Tools in Visualizer

    CODE
    POST /shiny/_update_by_query?conflicts=proceed
    {
      "script": {
        "source": "ctx._source.searchable = params.searchable",
        "lang": "painless",
        "params": {
          "searchable": true
        }
      },
      "query": {
        "match": {
          "_id": "cbbe97d86d5f5768093cfc4615c1e0e643ba4e47"
        }
      }
    }
  3. Enter the ID of the item you want to tag in the id field (line 12)

  4. Items with the searchable field set to "true" (line 7), will appear in search results.

  5. 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: Setting Up Kerberos authentication for Shinydocs Pro

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.