Hi all, The documents in our solr index have an parent child relationship which we have basically flattened in our solr queries. We have messaged solr into being the query API for a 3rd party data. The relationship is simple parent-child relationship as follows:
category +-sub-category this ultimately maps to something like this in our Model: class Category List<Category> getChildCategories(); Currently, in our application code we were thinking about issuing 2 queries one to get the parent category, and one to get the sub-categories of the parent. We would then assemble the results in our model. What I was wondering is would it be feasible (or even an ok practice) to create a QueryResponseWriter (more than likely subclass an existing one like XMLResponseFormat) that when requested it issue an additional call to fetch the sub categories and add them to the original category document. Please be gentle with me :). Maybe we just need to create the index a little bit differently to better handle this relationship. Thanks, Donnie