When you do a search in SharePoint and it doesn’t return any results you get something like this.
We did not find any results for wwwww.
Suggestions:
-
Ensure words are spelled correctly.
-
Try using synonyms or related searches.
-
Try broadening your search by searching from a different site.
-
Try removing search refinements or using more general keywords.
-
Find a person related to your search with people search.
Additional resources:
-
Get additional search tips by visiting Search Help
-
If you cannot find a page that you know exists, contact your administrator.
If you want to change this you can do it on a per page basis by modifying the XSL. Just follow these steps.
-
Open up the search results page in SharePoint Designer using Edit File in Advanced Mode.
-
Get the properties (not the web part properties) by right clicking the CoreResultsWebPart and changing the UseLocationVisualization to False.
-
Now go to the design pane of the page and locate the CoreResultsWebPart.
-
You will want to copy the XSL for the web part. It starts with <xsl:stylesheet version=”1.0”and ends with </xsl:stylesheet>
-
With the copied XSL create a new page with an XSL extension (i.e. results.xsl) in a location such as SiteAssets
-
Back on the search results page go back to the properties.
-
In the XslLink property put in the URL reference to the XSL page you created and save. If it asks you if you want to overwrite the XSL, change the action to Use Existing.
-
Now you are ready to edit the XSL. The area of concern is the span that contains the ID CSR_NO_RESULTS. This span controls the text that appears when there are no results.
-
Modify the XSL with the text you want. Remember to put text inside a xsl:text tag in order to make it show up. Save the XSL and text.
Notes:
-
If you have changed the refinement panel, you may need to pull the XSL out and save it as a file similar to what was done for the CoreResultsWebPart
-
SiteAssets is not version controlled by default so make a backup.
-
Watch for the XslLink property clearing itself out when you edit the search results page. If it does that then just put the link back in.
-
NEVERoverwrite the XSL when you save. Always change the action to use the existing XSL.
#SharePoint #Search