Copied to clipboard

Flag this post as spam?

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


  • ced 16 posts 136 karma points
    Jun 04, 2020 @ 12:15
    ced
    0

    Examine MemberIndex MemberValueSetValidator not working

    Hello umbraco users/devs,

    We are using examine (umbraco 8.6.1) with a custom index on Member content. We followed the documentation https://our.umbraco.com/documentation/reference/searching/examine/indexing/ to create it.

    One of the features we would like to have with this index is to retrieve the list of all user locked out (see alias umbracoMemberLockedOut) but we couldn't achieve it.

    I understand (via the documentation) that Umbraco is hiding some field on members by default for security reason.

    var includeFields = Constants.Conventions.Member.GetStandardPropertyTypeStubs().Keys;
    

    This line of code gets member's standard field and the "umbracoMemberLockedOut" is present inside.

    But if I set a ValueSetValidator like this one when creating the index, it's not working.

    MemberValueSetValidator(null, null, includeFields, null);
    

    The field "umbracoMemberLockedOut" is not visible and querying it with examine gives no result at all. enter image description here enter image description here enter image description here

    As you can see on screenshot, the field "umbracoMemberLockedOut" is present in the include field but not in the result and impossible to query it.

    Is this a bug? Do you have more information about this? Thank you

  • Dee 118 posts 338 karma points
    Aug 28, 2020 @ 21:07
    Dee
    0

    Did you also rebuild the index?

Please Sign in or register to post replies

Write your reply to:

Draft