For this to work, you'd need to firstly configure the Examine InternalMemberIndexSet index to include the groups that each member belongs to. You would also need to hook into the Examine indexing events to add the member groups to the index when a member is saved etc.
Once the data is in the index, it's then a matter of editing the filter.html and member.filter.controller.js files to include the Member Group filter (you could use the Member Type as an example); and you may want to create an ApiController to return the list of Member groups (or you could hard-code the list for now).
If you want to take a look at the source code for the member list view it can be found on GitHub here: https://github.com/robertjf/umbMemberListView contributions are more than welcome - and you'll get a clearer idea of what's required by taking a look at that.
Hope that helps, if you need further assistance, feel free to PM me and I'll see what I can do.
Member Groups
Hi, has any one got the filter working with member groups?
Hi Andreas,
For this to work, you'd need to firstly configure the Examine InternalMemberIndexSet index to include the groups that each member belongs to. You would also need to hook into the Examine indexing events to add the member groups to the index when a member is saved etc.
Once the data is in the index, it's then a matter of editing the filter.html and member.filter.controller.js files to include the Member Group filter (you could use the Member Type as an example); and you may want to create an ApiController to return the list of Member groups (or you could hard-code the list for now).
If you want to take a look at the source code for the member list view it can be found on GitHub here: https://github.com/robertjf/umbMemberListView contributions are more than welcome - and you'll get a clearer idea of what's required by taking a look at that.
Hope that helps, if you need further assistance, feel free to PM me and I'll see what I can do.
- Rob.
Do you have an example of how to do this? I want to add my own custom filter for location.
Hi,
Anyone got any answers on this. I am generally having trouble searching any custom member fields using Examine.
I read somewhere that the searchable fields for member are hard coded and no way of searching custom fields.
Anyone know about this?
Kind Regards
David
Hi Guys,
I got examine searching working on the members. I had to create a custom indexer & searcher.
Here is what I did.
First - I create a new IndexSet within the ExamineIndex.config.
Second - I created a new Indexer within the ExamineSettings.config. This needs adding within ExamineIndexProviders/providers.
Third - I created a new Searcher within the ExamineSettings.config. This needs adding within ExamineSearchProviders/providers.
NOW YOU SHOULD BE ABLE TO SEARCH CUSTOM FIELDS!!!
Here is an example of one of my simple member searches.
Hope this helps someone. It look we a while to figure out.
Kind Regards
David
in case anyone's interested, Member Group filtering is now available out of the box with the latest version :)
is working on a reply...