r110888 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110887‎ | r110888 | r110889 >
Date:22:28, 7 February 2012
Author:oren
Status:deferred
Tags:
Comment:
added unimplemented method required to conform to Lucene 2.9.4 API
Modified paths:
  • /trunk/lucene-search-3/src/main/java/org/apache/lucene/search/PositionalMultiQuery.java (modified) (history)

Diff [purge]

Index: trunk/lucene-search-3/src/main/java/org/apache/lucene/search/PositionalMultiQuery.java
@@ -103,7 +103,7 @@
104104 * @author rainman
105105 *
106106 */
107 - protected class PositionalMultiWeight implements Weight {
 107+ protected class PositionalMultiWeight extends Weight {
108108
109109 /**
110110 *
@@ -146,6 +146,14 @@
147147 scaledBoosts = true;
148148 }
149149
 150+
 151+ @Override
 152+ public Scorer scorer(IndexReader reader, boolean scoreDocsInOrder,
 153+ boolean topScorer) throws IOException {
 154+
 155+ return scorer(reader) ;
 156+ }
 157+
150158 public Scorer scorer(IndexReader reader) throws IOException {
151159 if (termArrays.size() == 0) // optimize zero-term case
152160 return null;
@@ -271,6 +279,8 @@
272280 value = queryWeight * idf; // idf for document
273281 }
274282
 283+
 284+
275285
276286 }
277287

Status & tagging log