Skip to content

Apache Lucene open-source search software

javadocs

Robert Muir267b26e182f6
diff --git a/lucene/codecs/src/java/org/apache/lucene/codecs/memory/MemoryPostingsFormat.java b/lucene/codecs/src/java/org/apache/lucene/codecs/memory/MemoryPostingsFormat.java
index 4e707a32a10..8c2550aa051 100644
--- a/lucene/codecs/src/java/org/apache/lucene/codecs/memory/MemoryPostingsFormat.java
+++ b/lucene/codecs/src/java/org/apache/lucene/codecs/memory/MemoryPostingsFormat.java
@@ -70,10 +70,6 @@ import org.apache.lucene.util.packed.PackedInts;
* queries that rely on advance will (AND BooleanQuery,
* PhraseQuery) will be relatively slow!
*
- * <p><b>NOTE</b>: this codec cannot address more than ~2.1 GB
- * of postings, because the underlying FST uses an int
- * to address the underlying byte[].
- *
* @lucene.experimental */
// TODO: Maybe name this 'Cached' or something to reflect
@@ -88,6 +84,13 @@ public final class MemoryPostingsFormat extends PostingsFormat {
this(false, PackedInts.DEFAULT);
}
+ /**
+ * Create MemoryPostingsFormat, specifying advanced FST options.
+ * @param doPackFST true if a packed FST should be built.
+ * NOTE: packed FSTs are limited to ~2.1 GB of postings.
+ * @param acceptableOverheadRatio allowable overhead for packed ints
+ * during FST construction.
+ */
public MemoryPostingsFormat(boolean doPackFST, float acceptableOverheadRatio) {
super("Memory");
this.doPackFST = doPackFST;