a customer is asking whether it is possible to use SharePoint (2013 and up) search in a term store and (infer) the URL of any hits. To make my example more vivid, imagine a term structure like
Navigation
- Group 1
- Term 1
- Term 2
- Term 3
- ...
- Group 2
- Term 4
- Term 5
Now if I searched for "Term 2" I would like SharePoint to display a result containing the URL.
I tried some KQL like
"Term 2" Path:"https://site.contoso.com/" contentclass:STS_Web -ContentClass=urn:content-class:SPSPeople
in the query Editor, but it does not work. If there are any hits, it is only displayed as "Group 1 - https://site.contoso.com/Group 1", but I would like it to be "https://site.contoso.com/Group 1/Term 2".
Also, SharePoint automatically appends -ContentClass=urn:content-class:SPSPeople
which is very annoying. Is that necessary?
Could you please tell me what is wrong? Thank you for your help.