Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Liam Dilley 153 posts 379 karma points
    Feb 23, 2021 @ 23:00
    Liam Dilley
    0

    Umbraco 8 search and public restricted content

    Hey all, I can not find any documentation on this one. I have seen some posts in regard to older Examine and people asking to stop public restricted content from showing up, but my use case with 8 I have the opposite.

    I have the search core:

    var results = searcher.CreateQuery("content").ManagedQuery(searchTerm).And().GroupedOr(new [] {"__NodeTypeAlias"}, new [] {"defaultPage", "article", "blogPost", "event", "videoResource"}).And().Field("nodeName", searchTerm).Execute();
    

    This works. On the site there is restricted content which does not show up when no one is logged in. When logged in those items should show up in a search though. I would have another results output if logged in which I get but I can not find what is causing the restricted items to not show up in the first place and what you would add for them to show.

    Can anyone help please?

Please Sign in or register to post replies

Write your reply to:

Draft