:       I get two different DocSets from two different searchers. I need
: to merge them into one and get the facet counts from the merged
: docSets. How do I do it? Any pointers would be appreciated.

1) if you really mean "two different searchers" then you can not do this 
-- DocSets, and the docs they represent, are specific to a single 
searcher.  the same "docid" might refer to two completely differnet 
Documents in two different SolrIndexSearcher, so there is no way to relate 
them.

2) assuming your DocSets come from the *same* SolrIndexSearcher, then you 
have to define what you mean by "merge".  the DocSet API provides both  
intersection(DocSet) and union(DocSet) methods precisesly for this purpose 
-- just pick your meaning.

3) once you have your "merged" DocSet, you can construct a SimpleFacets 
instance using that DocSet and get whatever facets you want.



-Hoss

Reply via email to