This search is designed to be a general framework that allows people to search through contacts.
and so on.
Speaking in CiviCRM terms, this should allow a user to select a list of contacts based on
A quick trawl of the forums suggests that this is often asked for functionality. The suggestion is often a custom search but it appears that none has been implemented and made publicly available, e.g.
User interface and workflow
I think the most simple interface here would be something along the lines of a custom search screen that has three drop down menus
The user would first create the two groups if needed.
They would then go to the custom search page, and select the desired groups and relationship type and hit search
Results would be those contacts from group A that are related by the specified relationship type to contacts in group B.
please add alternative suggestions as to how this could work.
XD: in most of my needs, it was either something complex (find all contacts employed by an organisation taged A AND B), or where the address is in this country or that country...
What I felt missing was an advanced search where you only put the relationtype eg. find all the contact that have a relationship "Accountant for", no matter what organisation. As for what I want to do to all the accountants, I'm going to keep silent and wait for my lawyer...
The other was to be able to advanced search where I can put the id of the contact, not only having an autocomplete (might be because the autocomplete doesn't work very well).
Doing a smart group with that queries and doing search on group A but not group B and so on would be quite powerful and cover most of the simple needs. For the most complex one, I expect having to resort to custom searches anyway.
Seems like I can't add comments. Agree Lobo that second group is optional. Might often be all employees of an organisation that works with the bangladeshi community, but it won't always be. For example, all employees of organisations that have an income of over £100,000 that are subscribed to our e-newsletter / have the VIP tag, etc.