> On Wed, Jul 15, 2009 at 4:12 PM, Uwe Schindler<u...@thetaphi.de> wrote: > > > As far as I know, Shalin implemented the Collectors in Solr with the > method > > allowDocsOutOfOrder() returning false. So the collectors should create > > DocIdSet with correct order. > > I think you meant "so the Scorers will be created so that they provide > docIDs in order".
The latest patch in https://issues.apache.org/jira/browse/SOLR-940, here Shalin implemented allowDocsOutOfOrder as false in some cases. I think from the discussion in other issues, that this was because of the order of doc ids was needed to create DocIdSets out of the collected results. I have something similar in my code here, too. I use a Collector, but need the doc ids in order. > Ie, Lucene first asks the Collector if it'll accept docs out of order. > If it returns false, then it asks the Weight for a Scorer that always > returns docs in order. > > But in the case of BooleanQuery this is a sizable performance hit, if > it's a query (only OR'd terms and at most 32 MUST_NOT terms) that can > use BooleanScorer not BooleanScorer2. Sometimes ordered DocIds are more important, because ordering them later using a quicksort would be more costy than a slower query. Because of this it is good to have this method allowDocsOutOfOrder(). Uwe --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org