Forum Discussion
Result Types for Modern Search
Due to the recent Microsoft changes to modern search results (displays filenames instead of the title that is populated in SharePoint), we explored the use of 'Result Types' for modern search. We were able to closely replicate the search results with the properties we want to display, including the title. It works like a charm but then we stumbled across ones that uses special characters in the filename. The search adaptive card does not render the title, nor it is clickable due to parathesis used in the filename.
Below is a JSON snippet used. It still works fine for filenames like 'Heat Stake Thermal Press Process Standards.pdf' but not 'Heat Stake (Thermal Press) Process Standards.pdf'. Any suggestions in allowing the results to render correctly and for it to be clickable to the actual file without having to go back and rename all the files?
{
"type": "TextBlock",
"text": "[${title}](${Url})",
"size": "medium",
"weight": "bolder",
"maxLines": 2
}
Correct:
Incorrect:
- ChrisFicekIron ContributorBasically, parathesis in the filename is causing the title and the URL (link to the file) to not render or work correctly. If there is a solution that would solve this issue, I am interested in learning more about the workaround if there is one (without having to rename the files without parathesis - if possible).