: Given this type of layout, how would I go about querying and returning : a list of blogs which contain text in either the blog content or any : of the comments' content?
a big issue is how timely do your comments have to show up in the index ... for some people an acceptible tradeoff is that new/edited "blogs" get sent to the index immediately, but a cron runing at fixed regular intervals indexes the comments ... in that approach your first idea is usually the most straight forward... : 1) aggregate comment content into the blog content index, allowing me : to query directly on the blog. However we are expecting the site to A hybrid of your second and third suggestions is a much more involved approach that might also work... : 2) Use facets to get a list of parent items and issue an additional : query (or hit the database) to pull in the parent content. Again, ... : 3) Plug into the solr code and implement a custom request handler, : HitCollector, or ...? I've spent some time digging into the solr code : and I don't see any obvious place to plug this type of functionality You can do pretty much anything you want in a custom request handler, but i must admit that off the top of my head i can't think of any elegant way to solve your problem. Most people i know are happy with option #1 :) -Hoss