BooleanQuery uses BooleanScorer when possible because that gives better performance than BooleanScorer2.
If you really want to force it, you'd need to create the weight/scorer yourself, passing "true" for scoreDocsInOrder. Alternatively, you could make your collector, for example wrapping another collector, that returns "false" for acceptsDocsOutOfOrder. But: why do you need/want to do this? Mike On Fri, Dec 25, 2009 at 4:46 PM, Elias Khsheibun <[email protected]> wrote: > When I write the following query: > > "Computer AND Science" - the code that is in BooleanScorer2 is invoked, and > when I write "Computer OR Science" the code in BooleanScorer is invoked. How > can I make the OR (the conjunctive query) to use the BooleanScorer2 and not > BooleanScorer, which is the new implementation. > > > Elias. > > > --------------------------------------------------------------------- > 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]
