SharePoint 2013: OWA Previews not displaying in Search Results
Problem
You have deployed Office Web Apps (OWA) to your internal SharePoint 2013 farm situated on the corporate intranet. The OWA farm does not employ encrypted connections (HTTPS). Thus, the WOPI zone is internal-http. You have successfully tested the new OWA farm by navigating to its WOPI discovery page. However, you are not able to view a preview of a document, either in a document library or in a search result.
Solution
- To get previews to display in document libraries:
- Ensure that AllowOAuthOverHttp is True.
Execute:
(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp
If this is False, execute the following:
$config = (Get-SPSecurityTokenServiceConfig) $config.AllowOAuthOverHttp = $true $config.Update()
- Ensure that document type zones match the OWA farm's WOPI zone
First check document type zones by executing:
Get-SPWOPIBinding
Next, check the OWA farm zone by executing:
Get-SPWOPIZone
If these are different, set the WOPI zone of the OWA farm to match the WOPI zones of the document types. The default zone for the OWA farm is internal-https. You'll need to change this to internal-http. Do this by executing:
Set-SPWOPIZone -zone "internal-http"
- Ensure that AllowOAuthOverHttp is True.
- To get previews to display in search results:
- Delete the index and rebuild it. An incremental won't do.
- Logon as farm administrator
- In Central Administration, navigate to Search Service Administration.
- Click Index Reset.
- After the index reset is completed, start a new full crawl.
- After the full crawl is completed, perform a new search and then test the preview capability again.
- Delete the index and rebuild it. An incremental won't do.
References
- SharePoint 2013 – Office Web Apps Preview Not Showing
- Office Online and FAST Search Document Thumbnail and Preview Scenarios
- SharePoint Server 2013 search results do not display document previews or thumbnails from SharePoint Server 2010 sites
- Deploy Office Web Apps Server
- Configure Office Web Apps for SharePoint 2013
- Get-SPSecurityTokenServiceConfig
- Get-SPWOPIBinding
- Get-SPWOPIZone