Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi, we want to search the member section using the custom member properties on the Member Type. It will be useful to the support team if they can search for members using the organization name and organization id properties that each member has.
According to the documentation we need to:
Index the member fields
By default only username and email are indexed but this can be changed by changing the indexing as described here:
This seems to be working as we can search on the member properties in the Examine Management dashboard. We can see all of the member properties are in the index.
Override the UmbracoCustomSearchFields class
By default the member search will only search on the username and email.
This page in the documentation describes how to override the default field list by implementing IUmbracoTreeSearcherFields, a feature introduced in v8.6. but I feel like a step is missing in the guide.
How does the custom class get loaded?
I found that I needed to register the custom UmbracoTreeSearchFields class in a composer class.
public class UmbracoTreeSearcherFieldsComposer : IUserComposer
public void Compose(Composition composition)
The details are in this answer:
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted