| --- lucene-java-2.3.1/src/java/org/apache/lucene/search/payloads/BoostingTermQuery.java 2008-03-14 23:49:54.958725942 +0000 |
| +++ lucene-java-2.3.1-patched/src/java/org/apache/lucene/search/payloads/BoostingTermQuery.java 2008-03-14 23:50:11.638664522 +0000 |
| @@ -61,17 +61,17 @@ |
| |
| |
| |
| public Scorer scorer(IndexReader reader) throws IOException { |
| return new BoostingSpanScorer((TermSpans)query.getSpans(reader), this, similarity, |
| reader.norms(query.getField())); |
| } |
| |
| - class BoostingSpanScorer extends SpanScorer { |
| + protected class BoostingSpanScorer extends SpanScorer { |
| |
| //TODO: is this the best way to allocate this? |
| byte[] payload = new byte[256]; |
| private TermPositions positions; |
| protected float payloadScore; |
| private int payloadsSeen; |
| |
| public BoostingSpanScorer(TermSpans spans, Weight weight, |