Forum Discussion
Problem with Search and PnP Search results web part with managed metadata columns
Hello,
I am using PnP Modern Search web parts and trying to know how some values in search works when applied to managed metadata columns.
I have a column name "Tags" that is linked to a Term Store in SharePoint Online that allows users to tag site pages in SharePoint Online.
One of the possibilities in those pages is to click on the Tags associated to the page that allows the user to be redirected to a search center page that filters search results by the selected Tag.
For the search center page at https://mytenant.sharepoint.com/sites/searchcenter/SitePages/SearchCenter.aspx, I am using PnP Search Results and PnP Filters web parts.When refining search results in the filters web part, I select one of the tags (managed metadata) I get the following url:
https://mytenant.sharepoint.com/sites/searchcenter/SitePages/SearchCenter.aspx?Tags=Travel&f=****[{"filterName":"RefinableString111","values":[{"name":"Travel","value":"\"ǂǂ54726176656c\"","operator":0,"disabled":false}],"operator":"and"}]#****
Page looks like:
My question is regarding the "ǂǂ54726176656c" value that is associated with a term in my Term Store. This value is returned in the Search Results but I don't know what this is. How can I get this value from the term store (is there an API where I pass the Term Label and this value is returned?) so that for each tag listed in the page I can generate the correct URL to filter pages by tag in the search center?
Thanks
1 Reply
- Jenny_BruceBrass Contributor
Miguel Isidoro - I'm disappointed no one in the community has responded to your question. I have this issue too.