Copied to clipboard

Flag this post as spam?

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


  • Marthijn Wassink 17 posts 50 karma points
    Jul 14, 2016 @ 11:36
    Marthijn Wassink
    0

    Examine missing member properties after saving in the backend

    I have a problem with Examine. When I search a member the object has properties like: umbracoMemberApproved: 1 umbracoMemberFailedPasswordAttempts: 0 umbracoMemberLastLogin: 06/29/2016 16:00:25 umbracoMemberLastPasswordChangeDate: 01/13/2016 19:48:41 umbracoMemberLockedOut: 0

    But after I save a member in the backend the properties are missing from the Examine index(InternalMemberIndexSet) When I manually rebuild the index the properties are back again.

    I tried to make a workaround by rebuilding the index on the saved event from the member like so:

                private void MemberService_Saved(IMemberService sender, DeleteEventArgs<IMember> e)
        {
            var indexer = ExamineManager.Instance.IndexProviderCollection["InternalMemberIndexer"] as LuceneIndexer;
            indexer?.RebuildIndex();
        }
    

    This didn't work :(

    I'm using Umbraco 7.3.8 but I also tested a clean version of 7.4.3 the problem still exists

    Any ideas?

  • Marthijn Wassink 17 posts 50 karma points
    Jul 15, 2016 @ 07:17
    Marthijn Wassink
    0

    I see that other people got the same problem.

    There is a topic created for it: https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/76069-examine-deletes-member-from-its-index

    And a issue is created for it: http://issues.umbraco.org/issue/U4-8291

    Anyone got a workaround for it?

Please Sign in or register to post replies

Write your reply to:

Draft