Forum Discussion
Customizing Search Result Display for .eml files at Site Collection level
Hi everyone,
I’ve noticed a specific behavior regarding how SharePoint handles search results for .eml files and I am looking for a way to optimize this.
Observation: Following a migration of emails into a SharePoint Site Collection, the search results currently display the Filename as the primary heading. Since these filenames are GUIDs, they provide no context to the users. The Title property (which contains the actual email subject) is available but is not being used as the main display value in the search results.
Goal: The objective is to change the search result display so that the Title/Subject is shown instead of the Filename, making the results meaningful for the end-users.
Current Constraints:
- Permissions: Access is limited to Site Collection Administrator (no Tenant Admin access).
- Environment: Must remain Out-Of-The-Box. PnP Modern Search or other third-party web parts cannot be deployed in this environment.
- Scope: Changes need to be implemented at the Site Collection level, as tenant-wide search schema modifications are currently not an option.
Technical Question: Is there a way to influence the result display logic or the mapping of Managed Properties specifically within the Site Search Schema to achieve this? I am looking for guidance on whether this can be solved through site-level configuration or if there are other OOTB workarounds to prioritize the Title property in the search UI.
Any insights or documentation on how to approach this at the site level would be greatly appreciated.
1 Reply
- virendrakIron Contributor
No, in modern SharePoint Online you cannot change the default search result display template or override managed property mapping at the site collection level. The behavior you’re seeing with .eml files (GUID filename shown instead of the Title) is expected and cannot be modified.
Modern SharePoint search uses a fixed, tenant‑controlled display template:
- It always prioritizes FileName (FileLeafRef) as the main label.
- Even if the Title property (email subject) is populated, modern search does not allow you to switch the display to Title at the site level.
- Site Collection Admins can only adjust mappings for custom managed properties; not system properties like Title, Filename, or the built‑in display logic.
You can use a Classic Search Center and configure a custom display template that:
- Uses Title as the primary heading
- Falls back to Filename only if Title is empty
However, I do not recommend classic search approach. It changes the overall user experience, requires a separate Classic Search site and additional navigation links in your existing site, and introduces extra training and change‑management challenges. Users would need to go to a different site or page to perform their searches.
If my post solved your issue or answered your query, please mark it as a Solution and give it a Like.