Index: trunk/lucene-search-3/src/main/java/org/apache/lucene/search/PositionalMultiQuery.java |
— | — | @@ -103,7 +103,7 @@ |
104 | 104 | * @author rainman |
105 | 105 | * |
106 | 106 | */ |
107 | | - protected class PositionalMultiWeight implements Weight { |
| 107 | + protected class PositionalMultiWeight extends Weight { |
108 | 108 | |
109 | 109 | /** |
110 | 110 | * |
— | — | @@ -146,6 +146,14 @@ |
147 | 147 | scaledBoosts = true; |
148 | 148 | } |
149 | 149 | |
| 150 | + |
| 151 | + @Override |
| 152 | + public Scorer scorer(IndexReader reader, boolean scoreDocsInOrder, |
| 153 | + boolean topScorer) throws IOException { |
| 154 | + |
| 155 | + return scorer(reader) ; |
| 156 | + } |
| 157 | + |
150 | 158 | public Scorer scorer(IndexReader reader) throws IOException { |
151 | 159 | if (termArrays.size() == 0) // optimize zero-term case |
152 | 160 | return null; |
— | — | @@ -271,6 +279,8 @@ |
272 | 280 | value = queryWeight * idf; // idf for document |
273 | 281 | } |
274 | 282 | |
| 283 | + |
| 284 | + |
275 | 285 | |
276 | 286 | } |
277 | 287 | |