Jun 11 2018 06:45 AM
When searching in a modern hub site and document library within the site the search suggestions and the search results page show document file names instead of the titles. Is there a way to change this? It doesn't make for a very nice search experience as file names are not usually formatted in a friendly manner where titles are edited and friendly to the users.
Attached are screenshots from the document library search and also the hub site search/results.
Jun 11 2018 01:16 PM
Did you look at this solution from pnpstarter kit. It gives you options to build query and custom refiner for modern search.
Jun 11 2018 01:36 PM
Thanks I will take a look. Seems like a shame that the default search uses the filenames instead of titles. I also noticed that if you search in SharePoint home the search results do get displayed using the Title instead of the filename.
Do you know if there are any plans to tidy this up in modern sites without us having to do customization?
thanks,
Jun 18 2018 11:10 AM
Hi, I found this blog that sorts the problem out.
basicly you go to search schema on the title managed property settings and adjust the position of the MetadataExtractorTitle crawled property (or remove that crawled property altogether if you do not want it included).
I deleted it alltogether which fixed the problem.
Jun 21 2018 09:20 AM
Thanks for the info but I doesn't seem to have fixed my issue. I'm seeing this issue with PDF files and the search seems to be retrieving the filename instead of the Title metadata.