In your collector, create the TFC and save it as tfc. Then in each of Collectors methods that you implement, do your own stuff (setting the bit) but also then call tfc.XXX (eg tfc.collect).
That should work? Mike On Thu, Mar 11, 2010 at 2:57 PM, Peter Keegan <[email protected]> wrote: > Yes. Could you give me a hint on how to delegate? > > On Thu, Mar 11, 2010 at 2:50 PM, Michael McCandless < > [email protected]> wrote: > >> Can you make your own collector and then just delegate internally to TFC? >> >> Mike >> >> On Thu, Mar 11, 2010 at 2:30 PM, Peter Keegan <[email protected]> >> wrote: >> > Is it possible to issue a single search that combines a TopFieldCollector >> > (MultiComparatorScoringMaxScoreCollector) with a custom Collector? The >> > custom Collector just collects the doc IDs into a BitSet (or DocIdSet). >> The >> > collect() methods of the various TopFieldCollectors cannot be overridden. >> > >> > Thanks, >> > Peter >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
