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 34407] - BooleanQuery assumes everything else implements skipTo
Date Tue, 12 Apr 2005 07:00:21 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=34407>.
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=34407


paul.elschot@xs4all.nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |33019
              nThis|                            |




------- Additional Comments From paul.elschot@xs4all.nl  2005-04-12 09:00 -------
Yonik, 
 
Please have a look at bug 33019. 
 
The point you make here is not mentioned there. 
With term doc enumerator implementing skipTo, all scorers 
can implement skipTo efficiently. 
During development of a new scorer one can temporarily use the code 
shown in the javadocs of Scorer that implements skipTo with 
next() and doc(). 
Btw. it also possible to implement next() as skipTo(doc() + 1). 
 
A bit of history: 
The early versions of Lucene did not have skipTo on term doc enumerators. 
At some point (1.2 ?) Doug added this and used it in ConjunctionScorer, which 
proved to be a great speedup for a BooleanQuery that requires all terms. 
 
For a smooth transition of adding skipTo on the remaining scorers it 
might be worthwhile to add the code mentioned in the javadocs of Scorer 
as the default implementation of skipTo. 
This needs to be investigated, so I'm making bug 33019 dependent on this 
one. 
 
Thanks for bringing this up, 
 
Regards, 
Paul Elschot 
 

-- 
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message