devbridge / BetterCMS

A publishing focused and developer friendly .NET Open Source CMS.
GNU Lesser General Public License v3.0
375 stars 151 forks source link

Search results: draft version is indexed and provided for not logged in user #928

Open daivabrazukaite opened 10 years ago

daivabrazukaite commented 10 years ago

Now next situation can be received: page accessible for not logged in user was changed and content saved as draft. Not logged in user searched according some new text in this page, page was returned, text was visible in results, but after page was opened - other content was visible. Maybe indexing could be done only for published content (not ok if idea was to use search and for unpublished content) or there should be two versions: one with published content (for not logged in users) and other one including drafts (for logged in users).

Audrunas commented 10 years ago

As decided with Paulius:

LuceneSearch.GetUsers += GetUsers();
UsersList GetUsers()
        {
            return Membership.GetAllUsers();
        }

Need to discuss some more, because there is obscurity and many problems may occur when implementing such a model.

Audrunas commented 10 years ago

Moving to version 2.0