You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ro...@apache.org on 2014/12/08 12:09:54 UTC
svn commit: r1643788 - in /lucene/dev/branches/lucene2878/lucene:
codecs/src/java/org/apache/lucene/codecs/memory/
highlighter/src/java/org/apache/lucene/search/highlight/positions/
highlighter/src/test/org/apache/lucene/search/highlight/positions/ tes...
Author: romseygeek
Date: Mon Dec 8 11:09:53 2014
New Revision: 1643788
URL: http://svn.apache.org/r1643788
Log:
LUCENE-2878: Remove positions highlighter (for now); MemoryPostingsFormat fix
Removed:
lucene/dev/branches/lucene2878/lucene/highlighter/src/java/org/apache/lucene/search/highlight/positions/
lucene/dev/branches/lucene2878/lucene/highlighter/src/test/org/apache/lucene/search/highlight/positions/IntervalHighlighterTest.java
Modified:
lucene/dev/branches/lucene2878/lucene/codecs/src/java/org/apache/lucene/codecs/memory/MemoryPostingsFormat.java
lucene/dev/branches/lucene2878/lucene/test-framework/src/java/org/apache/lucene/index/BasePostingsFormatTestCase.java
Modified: lucene/dev/branches/lucene2878/lucene/codecs/src/java/org/apache/lucene/codecs/memory/MemoryPostingsFormat.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene2878/lucene/codecs/src/java/org/apache/lucene/codecs/memory/MemoryPostingsFormat.java?rev=1643788&r1=1643787&r2=1643788&view=diff
==============================================================================
--- lucene/dev/branches/lucene2878/lucene/codecs/src/java/org/apache/lucene/codecs/memory/MemoryPostingsFormat.java (original)
+++ lucene/dev/branches/lucene2878/lucene/codecs/src/java/org/apache/lucene/codecs/memory/MemoryPostingsFormat.java Mon Dec 8 11:09:53 2014
@@ -542,17 +542,17 @@ public final class MemoryPostingsFormat
@Override
public int nextPosition() throws IOException {
- return -1;
+ return NO_MORE_POSITIONS;
}
@Override
public int startPosition() throws IOException {
- return -1;
+ return NO_MORE_POSITIONS;
}
@Override
public int endPosition() throws IOException {
- return -1;
+ return NO_MORE_POSITIONS;
}
@Override
Modified: lucene/dev/branches/lucene2878/lucene/test-framework/src/java/org/apache/lucene/index/BasePostingsFormatTestCase.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene2878/lucene/test-framework/src/java/org/apache/lucene/index/BasePostingsFormatTestCase.java?rev=1643788&r1=1643787&r2=1643788&view=diff
==============================================================================
--- lucene/dev/branches/lucene2878/lucene/test-framework/src/java/org/apache/lucene/index/BasePostingsFormatTestCase.java (original)
+++ lucene/dev/branches/lucene2878/lucene/test-framework/src/java/org/apache/lucene/index/BasePostingsFormatTestCase.java Mon Dec 8 11:09:53 2014
@@ -1583,7 +1583,7 @@ public abstract class BasePostingsFormat
if (random().nextBoolean()) {
docs = termsEnum.docs(null, docs, DocsEnum.FLAG_FREQS);
} else {
- docs = termsEnum.docsAndPositions(null, null, 0);
+ docs = termsEnum.docsAndPositions(null, null, DocsEnum.FLAG_POSITIONS);
}
int docFreq = 0;
long totalTermFreq = 0;