cancel
Showing results for 
Search instead for 
Did you mean: 

Search

harshad
Champ in-the-making
Champ in-the-making
I have 2 content types a A and B. A and B can have many - many relationship. So basically they are connected by an association.

The question I have is, I want to search on some properties of B and then show results showing all A types associated with B.

Any ideas how this can be done?

One idea I had was search on meta data for B and then based on search results, use "Preview in Template" and get all associated A types and show them.

Any idea how to write such a template to get associated items?

Thanks,
2 REPLIES 2

jgreen
Champ in-the-making
Champ in-the-making
I have a similar issue, did you ever find a solution ?

kevinr
Star Contributor
Star Contributor
Although i haven't tried it, there are APIs for Lucene search in the template model and also you can walk the assocs of a node, so if you perform a search and then walk the assocs of the results you should be able to do this.

Thanks,

Kevin