Question

I have set a crawl on some file shares on my file server. This works perfectly and even crawls the content of the files. When I search a specific file the search return my answer perfectly. However when i try to open the file nothing happens. I have to copy the link from the file server SPSearch return and paste it in windows explorer. I finds this a very wrong way to open the document you just found. Is there a way to download or open the file from the search results?

I am using SharePoint server 2013 so I don't have a XSLT file.

Edit : I can open files in Internet Explorer but it doesn't seem to work in Firefox or Chrome. Anybody know what option I have to enable in order that files will open in Chrome and Firefox aswell?

Was it helpful?

Solution

This tutorial is about how to customize search results.

There are three topics:

  1. Customization to highlight search keyword
  2. Customization to open Search result items in new window
  3. Customize People Search result

I think you can find what you are looking for in topic No. 2 or at least an idea on how to do it. For instance, you can edit the links - lines that create item url for Icon, Title and URL of search result.

EDIT:

Taken from the site, Topic No. 2:

  1. Go to SharePoint site
  2. Perform a search on site
  3. Search result page will open.
  4. On this page go to Edit page option.
  5. On search core results webpart click on edit webpart option
  6. In webpart properties, Click on the XSL Editor Button
  7. Take backup of XSLT file before modification.
  8. Now copy XSLT and open it in text pad

Search for the lines:

<span class=”srch-Icon”>
<a href=”{$url}” id=”{concat(‘CSR_IMG_’,$id)}” title=”{$url}”>
<span class=”srch-Title”>
<a href=”{$url}” id=”{concat(‘CSR_’,$id)}” title=”{$url}”>
<span class=”srch-URL”>
<a href=”{$url}” id=”{concat(‘CSR_U_’,$id)}” title=”{$url}” dir=”ltr”>

Above lines create item url for Icon, Title and URL of search result. In current state these will open items on search result page. If you want the link to open in a new window, you will add a target=”_blank” at the end of href tag. Now update Webpart XSLT with these modifications and exit from editable mode.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top