Copied to clipboard

Flag this post as spam?

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


  • D1835 7 posts 77 karma points
    Feb 26, 2024 @ 14:28
    D1835
    0

    Search not working even for unprotected content

    On my backoffice, I get results from the Examine Management -> External Index but no results when I search on my website.

    On the folder MiscPageElements/SearchResults, if I comment the following line of code, it works.

    I have all pages protected (password required) but even if I remove the protection, the search does not work.

     //Protected content is hidden by default unless displayeProtectedContent is true
            if(!Model.Value<bool>("displayProtectedContent"))
            {
                criteria.Not().Field(USNConstants.IsProtectedExamineField, "true");
            }
    
Please Sign in or register to post replies

Write your reply to:

Draft