lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33019] - [PATCH] BooleanScorer can score documents in non increasing order
Date Mon, 24 Jan 2005 22:42:02 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGˇ
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33019>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDˇ
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33019





------- Additional Comments From paul.elschot@xs4all.nl  2005-01-24 23:42 -------
(In reply to comment #3) 
> Paul, 
>  
> Would be quite interesting to compare the performance with your 
BooleanScorer2. 
>  
> in skipTo shouldn´t it be 
>  
> <         if (target > scorer.doc()) { 
> >         if (target <= scorer.doc()) { 
 
Very likely, yes. (I have not yet looked at the code again.) 
 
>             more = true; 
>           } else if (scorer.skipTo(target)) { 
>             more = true; 
>           } else { 
>             sub.done = true; 
>  
> Setting end in skipTo could avoid some looping in subsequrnt next(). 
>  
> Could you add a method to switch between sorting and non-sorting behavior. 
> The non-sorting version should not use more resources than the original 
> BooleanScorer. 
 
I thought about that, too. I'll try it later. Basically it would be a flag 
allowing to use skipTo() and keeping the valid buckets sorted. 
 
Regards, 
Paul 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message