Integer.MAX_VALUE sentinel never checked?

2003-12-10 Thread Simon Cozens
Plucene is nearly finished, and is busy being unit-tested to death. In the process of doing this, we found that some of our phrase queries were returning more results than we expected. This is because when PhrasePositions falls off the end of the iterator, it returns a sentinel value: if

Re: Integer.MAX_VALUE sentinel never checked?

2003-12-10 Thread Doug Cutting
I don't think this value actually find its way into the results. Rather it causes PhraseScorer.score() to exit, as this value is always greater than the value of 'end' passed into that method. Doug Simon Cozens wrote: Plucene is nearly finished, and is busy being unit-tested to death. In the

Re: Integer.MAX_VALUE sentinel never checked?

2003-12-10 Thread Simon Cozens
Doug Cutting: I don't think this value actually find its way into the results. Rather it causes PhraseScorer.score() to exit, as this value is always greater than the value of 'end' passed into that method. Yep, I screwed up; sorry. Working nicely now. -- In related wibbling, I can see an

cvs commit: jakarta-lucene-sandbox/contributions/lucli - New directory

2003-12-10 Thread ehatcher
ehatcher2003/12/10 18:03:24 jakarta-lucene-sandbox/contributions/lucli - New directory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

cvs commit: jakarta-lucene-sandbox/contributions/lucli/META-INF - New directory

2003-12-10 Thread ehatcher
ehatcher2003/12/10 18:03:47 jakarta-lucene-sandbox/contributions/lucli/META-INF - New directory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

cvs commit: jakarta-lucene-sandbox/contributions/lucli/lib - New directory

2003-12-10 Thread ehatcher
ehatcher2003/12/10 18:04:41 jakarta-lucene-sandbox/contributions/lucli/lib - New directory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

cvs commit: jakarta-lucene-sandbox/contributions/lucli/src - New directory

2003-12-10 Thread ehatcher
ehatcher2003/12/10 18:04:57 jakarta-lucene-sandbox/contributions/lucli/src - New directory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

cvs commit: jakarta-lucene-sandbox/contributions/lucli/src/lucli - New directory

2003-12-10 Thread ehatcher
ehatcher2003/12/10 18:05:05 jakarta-lucene-sandbox/contributions/lucli/src/lucli - New directory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

cvs commit: jakarta-lucene-sandbox/contributions/lucli/src/lucli Completer.java LuceneMethods.java Lucli.java

2003-12-10 Thread ehatcher
ehatcher2003/12/10 18:07:45 Added: contributions/lucli README build.xml run.sh contributions/lucli/META-INF MANIFEST.MF contributions/lucli/lib README contributions/lucli/src/lucli Completer.java LuceneMethods.java