Re: Merging two DocSets in solr

2012-05-24 Thread Chris Hostetter

:   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


Re: Merging two DocSets in solr

2012-05-18 Thread Ramprakash Ramamoorthy
On Sun, May 13, 2012 at 4:45 PM, Dmitry Kan dmitry@gmail.com wrote:

 Are you operating inside the SOLR source code or on the (solrj) client
 side?

 SOLR source code!

 On Fri, May 11, 2012 at 12:46 PM, Ramprakash Ramamoorthy 
 youngestachie...@gmail.com wrote:

  Dear all,
 
   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.
 
  --
  With Thanks and Regards,
  Ramprakash Ramamoorthy,
  Project Trainee,
  Zoho Corporation.
  +91 9626975420
 



 --
 Regards,

 Dmitry Kan




-- 
With Thanks and Regards,
Ramprakash Ramamoorthy,
Project Trainee,
Zoho Corporation.
+91 9626975420


Re: Merging two DocSets in solr

2012-05-13 Thread Dmitry Kan
Are you operating inside the SOLR source code or on the (solrj) client side?

On Fri, May 11, 2012 at 12:46 PM, Ramprakash Ramamoorthy 
youngestachie...@gmail.com wrote:

 Dear all,

  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.

 --
 With Thanks and Regards,
 Ramprakash Ramamoorthy,
 Project Trainee,
 Zoho Corporation.
 +91 9626975420




-- 
Regards,

Dmitry Kan


Merging two DocSets in solr

2012-05-11 Thread Ramprakash Ramamoorthy
Dear all,

  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.

-- 
With Thanks and Regards,
Ramprakash Ramamoorthy,
Project Trainee,
Zoho Corporation.
+91 9626975420