mirror of https://github.com/apache/lucene.git
disambiguate inner class call to doc() for ecj compilation: LUCENE-610
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@416111 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e2c8931219
commit
9c011b1b33
|
@ -56,6 +56,10 @@ Bug fixes
|
|||
a non-empty segment file to be re-used, causing index corruption.
|
||||
(Andy Hind via Yonik Seeley)
|
||||
|
||||
10. LUCENE-610: Simple syntax change to allow compilation with ecj :
|
||||
disambiguate inner class scorer's use of doc() in BooleanScorer2.
|
||||
(DM Smith via Yonik Seeley)
|
||||
|
||||
Optimizations
|
||||
|
||||
1. LUCENE-586: TermDocs.skipTo() is now more efficient for multi-segment
|
||||
|
|
|
@ -130,8 +130,8 @@ class BooleanScorer2 extends Scorer {
|
|||
this.scorer = scorer;
|
||||
}
|
||||
public float score() throws IOException {
|
||||
if (doc() > lastScoredDoc) {
|
||||
lastScoredDoc = doc();
|
||||
if (this.doc() > lastScoredDoc) {
|
||||
lastScoredDoc = this.doc();
|
||||
coordinator.nrMatchers++;
|
||||
}
|
||||
return scorer.score();
|
||||
|
@ -157,8 +157,8 @@ class BooleanScorer2 extends Scorer {
|
|||
return new DisjunctionSumScorer(scorers, minMrShouldMatch) {
|
||||
private int lastScoredDoc = -1;
|
||||
public float score() throws IOException {
|
||||
if (doc() > lastScoredDoc) {
|
||||
lastScoredDoc = doc();
|
||||
if (this.doc() > lastScoredDoc) {
|
||||
lastScoredDoc = this.doc();
|
||||
coordinator.nrMatchers += super.nrMatchers;
|
||||
}
|
||||
return super.score();
|
||||
|
@ -175,8 +175,8 @@ class BooleanScorer2 extends Scorer {
|
|||
private int lastScoredDoc = -1;
|
||||
|
||||
public float score() throws IOException {
|
||||
if (doc() > lastScoredDoc) {
|
||||
lastScoredDoc = doc();
|
||||
if (this.doc() > lastScoredDoc) {
|
||||
lastScoredDoc = this.doc();
|
||||
coordinator.nrMatchers += requiredNrMatchers;
|
||||
}
|
||||
// All scorers match, so defaultSimilarity super.score() always has 1 as
|
||||
|
|
Loading…
Reference in New Issue