Forum Discussion
Marijn Scheir
Feb 28, 2017Copper Contributor
Highlighted Content - Filtering based on multiple enterprise keywords
Hi,
I'm trying to achieve te following:
I created a document library. In this library I created an 'enterprise keywords column' that I use to tag my documents (works very good btw).
Next I created a new modern sharepoint page. On this page I added the Highlighted Content app and tried to adjust it by setting filtering options. As filter I chose to filter based on Managed Properties - more specifically I chose the managed property: 'TAGS'. I tried to set 'TAGS Contains tag1' (where tag1 is an example tag used in the document library mentioned above). --> this worked perfectly .. Then I wanted to filter based on two tags.. so I tried to set 'TAGS CONTAINS tag1;tag2'.. --> this gave no results. However all documents in my library were taged with both tags. Indeed, if I changed the filter to 'TAGS CONTAINS tag2', everything works as expected again!
Can someone please help me in filtering highlighted content based on multiple tags?
Thanks in advance,
Marijn
- paulpaschaBronze Contributor
Have you tried adding multiple filters with a single value instead of one filter with multiple values?
Instead of using one filter TAGS Contains Tag1;Tag2 I think you should be able to add two filters:
- TAGS Contains Tag1
- TAGS Contains Tag2
- Marijn ScheirCopper Contributor
Thanks for the quick reply!
Indeed, that's something that I tried to do. However this does not give me the desired result.
Your proposed solution gives me all documents that have either tag1 or tag2 or both.The desired result of my filter was: only those documents that contain both tag1 and tag2. No less, no more..
Thanks though!
- carmen922Copper ContributorHi Marijn, were you able to resolve this issue?