We are using profile2_ apachesolr module for profile2 search. In our project we have 6 bundle in profile2. In this different bundle store same data. For Example one bundle store user skill and another bundle have user bio-data. In both place if user added drupal. At the time of searching I get two result for single user itself. How to club all profile bundle as single result.

Regards,
SELVAKUMAR

Comments

pwaterz’s picture

Status: Active » Closed (won't fix)

There are many ways to solve that problem. I don't believe it's this modules issue to solve. You could use hook_apachesolr_query_alter and ad a new filter (fq) that would filter out any un wanted results. Additionally you could alter the document being sent to solr with this hook http://www.drupalcontrib.org/api/drupal/contributions%21apachesolr%21apa... and just unset the entities you don't want indexed.