Changing the Result Selection Action
Discovery Search supports two actions when a user clicks on a search result:
Copy link to clipboard
Download the file
Copy Link to Clipboard
Upon clicking a result in Discovery Search, the UNC path to the result is copied to users' clipboards. To open the file, users can paste this URL into File Explorer or in Run (Windows Key + R) application.
This is the default action for Discovery Search.
Enabling Copy Link
Open web.config for Discovery Search
Find the key:
<add key="OnClickLinkFunction" value="download" />
Modify the value to "copy"
Your key should now look like this:
<add key="OnClickLinkFunction" value="copy" />
Save the file
Restart the site in IIS Manager
Download File
Upon clicking a result in Discovery Search, the file is downloaded to the web browser's download folder. The user can then open the downloaded file.
Enabling Download
Open web.config for Discovery Search
Find the key:
<add key="OnClickLinkFunction" value="copy" />
Modify the value to "download"
Your key should now look like this:
<add key="OnClickLinkFunction" value="download" />
Save the file
Restart the site in IIS Manager