Forum Discussion
David Mehr
Nov 11, 2016Brass Contributor
Modern Team Sites - Highlighted Content filter not work
On my FR Tenant i would like to use mts with the new webpart Highlighted Content. I want to use the webpart like a cswp with filter also with managed property.
But no filter works: Tested filters with [ME] oder Managed property like contentclass equals STS_Site . In every webparts appears "we didn't find anything to show here".... :(
- Julie SandersBrass Contributor
I've set up the Highlighted Content web part to filter using a managed property. When I've got the web part opened on the Modern page, it correctly only shows 3 files. But as soon as I save and close the page the filter isn't applied. When I edit the web part, my filters are there and only 3 files show so I know it is saving properly. What could it be? Yes, I have published the page.
- John_Sanders
Microsoft
Julie Sanders - is it you that sees different results when you say... "But as soon as I save and close the page the filter isn't applied." or someone else?
Did you originally add the webpart to the page or someone else (e.g. your admin)?
Does filtering work on other pages/instances of the webpart (e.g. is it only broken for this page/instance)?
Trying to understand more about the symptoms to figure out what's oging on.
Thanks,
John
- Julie SandersBrass Contributor
It works if I use "Begins with" versus "Equal To". So maybe my "save the page" complaint wasn't the issue.
- John_Sanders
Microsoft
Thanks for the feedback David. I have heard from a few folks that we should support standard operators, like [me]. We don't currently support that, you need to use the display name. I've added this to our backlog. Your second example in managed properties works for me if I filter by your example ContentClass = STS_Site, with source = All Sites. Is it working for you now, or still failing?
- Mikael SvensonSteel Contributor
John_Sanders wrote:Thanks for the feedback David. I have heard from a few folks that we should support standard operators, like [me]. We don't currently support that, you need to use the display name. I've added this to our backlog. Your second example in managed properties works for me if I filter by your example ContentClass = STS_Site, with source = All Sites. Is it working for you now, or still failing?
Hi John_Sanders,
I see if I use query variables like {User} the variable is expanded when examining the returned JSON, but no results are coming back. Any good explanation to this? I see the web part sends a couple of custom props as well, and are they blocking the execution of good old query variables even though they seem to get expanded?
- Elsa NaumannBrass Contributor
Hi Mikael Svenson and John_Sanders I found one variable that did work with the EditorOWSUser managed property; {User.Email} will show the correct results.
- Mikael SvensonSteel Contributor
If it's a private Group site, then it's a bug which prevents this for working as expected.
- John_Sanders
Microsoft
Mikael Svenson - Private Group document filtering with highlighted content has now been fixed (as of today).
- Bruce AlbanyCopper Contributor
Any further details on this bug Mikael Svenson? Is it that all search results don't show/aren't indexed when the group site housing them is Private?
David Mehr, this does work. I created a document on my site. Then I added the web part and like you said nothing appeared. Then I selected Pages as content type and my pages were showing up. Then I seleted document as my content type filter again and I got the document below:
So it looks like there may be a slight delay.
Then I added a filter and again there was some delay. I'm guessing that as this uses search you are depnding on the next search crawl to pick up your data.
You might want to have a play with the list/library settings. In advanced settings there is a box "Reindex Document Library or Reindex List". Click this will means that the library has been recrawled.
In general when this doesn't work for me I click on the box. Then I add an item. So that when the new item appears in search I know that the latest crawl has run.
- David MehrBrass Contributor
Pieter Veenstra, thanks for your feedback. That's right, webparts without a filter shows any documents.
But webparts with filters doesn't work.
In my case i add a filter with managed property created by equals [me], but i can see nothing, but i have created a lot.
And an other case is to show all "SiteCollections", i tested this with a filter managed property contentclass equals STS_Site , also nothing. Or is the webpart highlighted content the wrong way for this case?
Hi David Mehr,
I'm guessing that you are looking to build a site collection index rather than displaying content from all site collections. To display content from all site collections you can select the source and set it to All Sites.
If you now want to display sites/site collections. Then I don't think that that is possible wiht this web part. The Type and Document Type only include values for 'items'.