From 28f43e3b565398ea8ac0ffe7c17ac031fc203ad0 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Mon, 11 Jun 2012 16:12:12 +0000 Subject: [PATCH] LUCENE-4129: add codecheader to .frq/.prx git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1348927 13f79535-47bb-0310-9956-ffa450edef68 --- .../lucene40/Lucene40PostingsFormat.java | 6 +- .../lucene40/Lucene40PostingsReader.java | 49 +++++---- .../lucene40/Lucene40PostingsWriter.java | 12 ++- .../codecs/pulsing/PulsingPostingsFormat.java | 21 ++-- .../lucene40/TestAllFilesHaveCodecHeader.java | 98 ++++++++++++++++++ .../org/apache/lucene/index/index.40.cfs.zip | Bin 9081 -> 9175 bytes .../apache/lucene/index/index.40.nocfs.zip | Bin 18257 -> 17101 bytes .../lucene/index/index.40.optimized.cfs.zip | Bin 2829 -> 2975 bytes .../lucene/index/index.40.optimized.nocfs.zip | Bin 4489 -> 4854 bytes .../NestedPulsingPostingsFormat.java | 25 +++-- 10 files changed, 169 insertions(+), 42 deletions(-) create mode 100644 lucene/core/src/test/org/apache/lucene/codecs/lucene40/TestAllFilesHaveCodecHeader.java diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40PostingsFormat.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40PostingsFormat.java index 76f11b4114d..eb90cbc8c73 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40PostingsFormat.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40PostingsFormat.java @@ -159,7 +159,8 @@ import org.apache.lucene.util.fst.FST; // javadocs * with the frequency of the term in that document (except when frequencies are * omitted: {@link IndexOptions#DOCS_ONLY}).

*