Re: Union and intersection methods in solr DocSet

2015-05-06 Thread Gajendra Dadheech
Hey Chris, Thanks for reply. The exception is ArrayIndexOutOfBound. It is coming because searcher may return bitDocSet for query1 and sortedIntDocSet for query2 [could be possible]. In that case, sortedIntDocSet doesn't implement intersection and will cause this exception. Thanks and regards, G

Re: Union and intersection methods in solr DocSet

2015-05-06 Thread Chris Hostetter
: DocSet docset1 = Searcher.getDocSet(query1) : DocSet docset2 = Searcher.getDocSet(query2); : : Docset finalDocset = docset1.intersection(docset2); : : Is this a valid approach ? Give docset could either be a sortedintdocset or : a bitdocset. I am facing ArrayIndexOutOfBoundException when : uni