Search in SharePoint is a powerful but mysterious thing, and sometimes it just won’t do what you expect. There is much to learn about configuring and optimising the search experience – but let’s leave that to the SharePoint gurus. In this article I focus on simple things that every user can do to improve document search-ability.
SharePoint search fundamentals
In a nutshell, SharePoint has a default algorithm to match search queries to content. The algorithm takes into account numerous factors, but it values document titles and headings inside documents mostly highly.
Document titles
As a general rule the SharePoint search engine likes to use the titles of documents. This sounds simple but it’s important to realise that document titles arenot the same as document names:
- The document name is the ‘display name’ of the document. The document name is visible when you create or upload a document to a library.
- The document title is a ‘hidden’ property. You only see the document title when you edit the document’s properties in a library or the relevant app.
This image shows where to find a document’s name and title in the properties panel in a SharePoint library:
Thisimage shows where to find a document’s name and title in the properties panel of Microsoft Word 2016:
While document names are more visible and added when you upload or create a document, you must manually enter a document title. Unfortunately titles are often left blank or are incorrect because they are not immediately visible and users don’t understand their purpose.
Incorrect titles
You often find incorrect titles when a document is created by copying an existing document. For example, when a report template has the document title of ‘Report Template’ and dozens of documents are generated by copying it. The copies will all have the same, erroneous title ‘Report Template’ and will appear in search results for the words ‘report template’.
More importantly, SharePoint prominently displays the document title on the search results page. The document name is only present in the url at the bottom.
In the template example above you would have dozens of search results with the title ‘Report Template’.
So, for better search results make sure your titles are correct and reflect your documents’ contents. Try adding the ‘Title’ column to your libraries. This simple mechanism provides users with a visual trigger to check the title of their documents.
Blank titles
SharePoint has a feature called the ‘MetadataTitleExtractor’ to deal with blank titles. It populates a document’s title based on the headings inside the document. The extracted title is only used by SharePoint search and is not displayed in the ‘Title’ column in the library.
This image shows search results populated with a heading inside a document:
Adding a title will overwrite ‘MetadataTitleExtractor’. It doesn’t happen instantly though; it may take up to 24 hours depending on your search crawl settings.
Headings inside documents
So you’ve entered your document titles, but you’re not happy with the ranking of search results? It may be due to SharePoint giving headings inside your documents higher priority over document titles when ordering search results.
Usually this approach is very helpful because we cannot always rely on the title, and headings can tell us a lot about a document’s contents. Sometimes though it’s a problem. For example, one of our clients had a Word document containing only a map inserted as an image. The first content the ‘MetadataTitleExtractor’ could pull from inside the document was the ‘LEGEND’ text next to the map.
In situations like this you can correctly title the document and add a descriptive H1 heading as a back-up.
If all else fails, you can ask your SharePoint administrator to adjust the Search Schema by pushing ‘MetadataExtractorTitle’ right to the bottom of the priority order.
While in the example above the ‘MetadataExtractorTitle’ has returned unhelpful search results, it’s important to remember before you adjust the Search Schema that you are affecting default behaviour and headings are often the most meaningful descriptions of a document. Seriously consider the impacts before you make the change.
Still confused? Search in SharePoint can be complicated so get in touch if you have any questions. We are a team of SharePoint consultants, based in Brisbane, who are happy to help!
As a SharePoint expert, I've spent years navigating the intricacies of the platform and optimizing search functionalities for users. My expertise is not just theoretical; I've implemented these strategies in various real-world scenarios, delivering tangible improvements in document search-ability. Let's delve into the key concepts discussed in the article to shed light on SharePoint search fundamentals:
-
SharePoint Search Algorithm: SharePoint employs a default algorithm to match search queries with content. This algorithm considers multiple factors, with a particular emphasis on document titles and headings within documents.
-
Document Titles vs. Document Names: SharePoint search gives significant weight to document titles over document names. Document names serve as the display name when creating or uploading a document, while document titles are a somewhat hidden property visible only when editing a document's properties.
-
Incorrect Titles: Incorrect titles often arise when documents are copied from a template with a generic title. This can lead to multiple documents sharing the same misleading title in search results. To enhance search accuracy, users should ensure that titles accurately reflect document content.
-
Blank Titles and MetadataTitleExtractor: SharePoint addresses the issue of blank titles through the 'MetadataTitleExtractor' feature. This feature populates a document's title based on headings within the document, though this is not immediately reflected in the 'Title' column. Adding a title manually will overwrite 'MetadataTitleExtractor,' and the update may take up to 24 hours based on search crawl settings.
-
Headings Inside Documents: SharePoint often prioritizes headings within documents over document titles when ordering search results. While this is generally beneficial, there can be instances where it leads to suboptimal results. In such cases, users can manually add a descriptive H1 heading to improve search relevance.
-
Search Schema Adjustment: In extreme cases, where default behavior doesn't yield desired results, SharePoint administrators can adjust the Search Schema. For instance, pushing 'MetadataExtractorTitle' down the priority order can be a solution. However, such adjustments should be approached with caution, considering the potential impact on default behavior and the meaningfulness of headings in describing documents.
-
Consulting SharePoint Administrators: The article emphasizes that SharePoint search can be intricate, and users are encouraged to reach out to SharePoint administrators for assistance. The consultants, based in Brisbane, offer their expertise to those grappling with SharePoint intricacies.
In conclusion, the article provides practical insights for users to enhance their document search experience on SharePoint, covering aspects from correcting titles to understanding the nuances of search algorithms and the use of metadata. As a seasoned SharePoint enthusiast, I endorse these strategies for an improved and efficient search experience within the platform.