I have a site that is based on Open Atrium and currently using solr for site search. I would like to be able to add organic group members to the search index so that I can search for users within a particular OG. I would appreciate suggestions on how best to approach this.
Solr is set up via the Chapter 3 open atrium features module here http://features.chapterthree.com/openatrium-apachesolr-search/1-0-0, which uses apachesolr, apachesolr_og, apachesolr_search, and apachesolr_nodeaccess. In addition, Open Atrium uses nodeprofile so users' profiles are already in the index.
What I have considered doing is adding users' profile nodes to the same groups that they belong to. This would then make them searchable by OG, however my concern is that I would like everyone to be able to search for users across all OGs, including private OGs, and this would result in permission issues.
I would really appreciate any suggestions. Thanks.