Define a different formatterService for ISearchabl...
# help-with-umbraco
o
I've implemented an ISearchableTree looking for information in custom database entities. The problem is that the edit Url for those entities is not the Umbraco default ([sectionAlias]/[treeAlias]/edit/[entityId]). So, my goal is that those search results returns different urls. In another post, with the help of @Matt Brailsford (HQ), I've discovered the js service responsible for formatting the search results urls (https://github.com/umbraco/Umbraco-CMS/blob/6e154e0a0f63bb0f8c742f15c4f2c718b9515b16/src/Umbraco.Web.UI.Client/src/common/services/searchresultformatter.service.js#L4), so, in theory, I can create my own "searchresultformatter". The problem is that I don't know how to connect my SearchableTree implementation with this custom formatter. The ISearchableTree SearchAsync method must return a Task and EntitySearchResults doesn't have a property to define the formatter.
I really hope someone as tried this before. I’m stuck with it šŸ™