Wednesday, June 13, 2012

SharePoint Search Results shows first line instead of Title field of Document


Office documents stored in SharePoint 2010 which have their title field populated show an incorrect title in the default search results. The screen shot below shows the search results for the following document:
Filename: Test document 1.docx 

The title that is displayed as the link to the document at the top of the individual search result is the first line of text from the document, not the title (metadata) field. If title field for the document is not set, the filename is displayed as the link to the document at the top of the individual search result, not the first line of text from the document.
As per Microsoft it is normal behavior as it tries to give you more relevant result to your search.
To correct this behavior:
  • Edit the ‘EnableOptimisticTitleOverride’ key and modify its value to 0:
  • Open registry editor
  • Navigate to HKLM\SOFTWARE\Microsoft\Office Server\14.0\Search\Global\Gathering Manager
  • Restart the SharePoint Server Search 14 service at admin command prompt.
    1. net stop osearch14
    2. net start osearch14
  • Repeat the above steps for all SharePoint servers in the farm.
  • Perform a full crawl on the SharePoint content source(s)
Once the full crawl has completed, performing the search again gives the title field as the search result title for a document which has the title field populated
The following can be copied into a .reg file to automate setting the key, or the key could be set using PowerShell:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\14.0\Search\Global\Gathering Manager]
"EnableOptimisticTitleOverride"=dword:00000000

Please leave your comments/feedback.
Share:

1 comment: