views:

8

answers:

0

Hello,

I have a Page model. The Page model consists mainly of just the page name, however the actual page content is made up by many page components using has_many_polymorphs. Each of these page components also has a name and the linked component may contain more data, such as date values, textual content, images or other files.

This has been working well, but now that I need to implement search for the site I am a bit stumped. Essentially, when searching for pages, each of the components should somehow contribute metadata to the overall metadata for that page. I currently have been trying out thinking sphinx, but I am not sure if I can do what I want using it.

So my question is, are there any precedents or best practices for this situation? Any suggestions as to libraries or techniques to use would be very much appreciated.

Thanks!