You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use the react-search-refiners/search-results webpart. The result source refers to a sharepoint list with a managed data column named 'Struktur'. The source of that column is a hirarchical term set like that:
The template should show the full path (branch) of the term like: "Antrieb:ISO-Zylinder:A1"
Observed Behavior
The template snippet <span class="">Struktur: {{owstaxIdStruktur}}</span> gives me only the last part (or the leaf) of the terms path: "A1"
Is there a way to get the full term path within a template?
The text was updated successfully, but these errors were encountered:
WuWei42
changed the title
search-results: Get the full path of an managed data (term) in a template (UI)
Search-Results: Get the full path of an managed data (term) in a template (UI)
Jul 29, 2019
If you want the full path, you need to set the column/field to display the full path in the field properties in SharePoint. Then map ows_ColumnName to a custom managed property, and use that as your refiner. That will yield values such as "A:B:C" in the refiner values.
Thank you for your answer.
Unfortunatly it won't work in my case. I've tried your solution but I have not the refiner webpart added so far and I use only the 'Search result' webpart. This webpart use a result source identifier which relays the request to a library. This picture library contains the managed data column which displays the full taxonomy path in the library view as you also mentioned in your answer.
I mapped the column/field 'ows_Struktur' to an custom managed property (search/schema administration) and add this property to the 'selected properties' list in the search result webpart.
Still miss the property on the client site in the developer tools of my chrome browser.
By the way. I use the SP Online. If this makes a difference :-)
My be you have an other idea?!
Thanks in advanced.
@WuWei42 did you reindex the items after the mapping? And use the debug template to easily see if values are present or not in your managed property. Or use the SharePoint Search Query Tool.
Category
Expected or Desired Behavior
If I use the react-search-refiners/search-results webpart. The result source refers to a sharepoint list with a managed data column named 'Struktur'. The source of that column is a hirarchical term set like that:
The template should show the full path (branch) of the term like: "Antrieb:ISO-Zylinder:A1"
Observed Behavior
The template snippet
<span class="">Struktur: {{owstaxIdStruktur}}</span>
gives me only the last part (or the leaf) of the terms path: "A1"Is there a way to get the full term path within a template?
The text was updated successfully, but these errors were encountered: