diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40Codec.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40Codec.java index 8b2279d9692..3b0e65e61c5 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40Codec.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40Codec.java @@ -30,7 +30,8 @@ import org.apache.lucene.codecs.perfield.PerFieldPostingsFormat; /** * Implements the Lucene 4.0 index format, with configurable per-field postings formats. - * + * + * @see org.apache.lucene.codecs.lucene40 package documentation for file format details. * @lucene.experimental */ // NOTE: if we make largish changes in a minor release, easier to just make Lucene42Codec or whatever diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40DocValuesConsumer.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40DocValuesConsumer.java index 6ffaec48d1e..30fdcd087e9 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40DocValuesConsumer.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40DocValuesConsumer.java @@ -31,7 +31,9 @@ import org.apache.lucene.store.Directory; import org.apache.lucene.util.IOUtils; /** - * Default PerDocConsumer implementation that uses compound file. + * Lucene 4.0 PerDocConsumer implementation that uses compound file. + * + * @see Lucene40DocValuesFormat * @lucene.experimental */ public class Lucene40DocValuesConsumer extends DocValuesWriterBase { diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40DocValuesFormat.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40DocValuesFormat.java index ce563a800b2..4f5c5ef3f1b 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40DocValuesFormat.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40DocValuesFormat.java @@ -23,10 +23,108 @@ import java.util.Set; import org.apache.lucene.codecs.DocValuesFormat; import org.apache.lucene.codecs.PerDocConsumer; import org.apache.lucene.codecs.PerDocProducer; +import org.apache.lucene.index.DocValues; // javadocs +import org.apache.lucene.index.DocValues.Type; // javadocs import org.apache.lucene.index.PerDocWriteState; import org.apache.lucene.index.SegmentInfo; import org.apache.lucene.index.SegmentReadState; +import org.apache.lucene.store.CompoundFileDirectory; // javadocs +import org.apache.lucene.store.DataOutput; // javadocs +import org.apache.lucene.util.CodecUtil; // javadocs +import org.apache.lucene.util.packed.PackedInts; // javadocs +/** + * Lucene 4.0 DocValues format. + *

+ * Files: + *

+ * Entries within the compound file: + * + *

+ * There are several many types of {@link DocValues} with different encodings. + * From the perspective of filenames, all types store their values in .dat + * entries within the compound file. In the case of dereferenced/sorted types, the .dat + * actually contains only the unique values, and an additional .idx file contains + * pointers to these unique values. + *

+ * + * Formats: + * + * Data Types: + * + * Notes: + * + */ public class Lucene40DocValuesFormat extends DocValuesFormat { @Override diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40DocValuesProducer.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40DocValuesProducer.java index aea22072bb7..8b800d778ef 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40DocValuesProducer.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40DocValuesProducer.java @@ -38,7 +38,9 @@ import org.apache.lucene.store.IOContext; import org.apache.lucene.util.IOUtils; /** - * Default PerDocProducer implementation that uses compound file. + * Lucene 4.0 PerDocProducer implementation that uses compound file. + * + * @see Lucene40DocValuesFormat * @lucene.experimental */ public class Lucene40DocValuesProducer extends PerDocProducerBase { diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40FieldInfosReader.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40FieldInfosReader.java index 878f8002e88..9feaff9327e 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40FieldInfosReader.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40FieldInfosReader.java @@ -35,7 +35,10 @@ import org.apache.lucene.store.IndexInput; */ /** + * Lucene 4.0 FieldInfos reader. + * * @lucene.experimental + * @see Lucene40FieldInfosFormat */ public class Lucene40FieldInfosReader extends FieldInfosReader { diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40FieldInfosWriter.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40FieldInfosWriter.java index e1a64a6ab77..c3383fa8713 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40FieldInfosWriter.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40FieldInfosWriter.java @@ -29,6 +29,9 @@ import org.apache.lucene.store.IOContext; import org.apache.lucene.store.IndexOutput; /** + * Lucene 4.0 FieldInfos writer. + * + * @see Lucene40FieldInfosFormat * @lucene.experimental */ public class Lucene40FieldInfosWriter extends FieldInfosWriter { diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40NormsFormat.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40NormsFormat.java index a085a4840d0..7e4bc732b31 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40NormsFormat.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40NormsFormat.java @@ -30,9 +30,20 @@ import org.apache.lucene.index.AtomicReader; import org.apache.lucene.index.PerDocWriteState; import org.apache.lucene.index.SegmentInfo; import org.apache.lucene.index.SegmentReadState; +import org.apache.lucene.store.CompoundFileDirectory; // javadocs /** - * Norms Format for the default codec. + * Lucene 4.0 Norms Format. + *

+ * Files: + *

+ * Norms are implemented as DocValues, so other than file extension, norms are + * written exactly the same way as {@link Lucene40DocValuesFormat DocValues}. + * + * @see Lucene40DocValuesFormat * @lucene.experimental */ public class Lucene40NormsFormat extends NormsFormat { @@ -53,6 +64,11 @@ public class Lucene40NormsFormat extends NormsFormat { Lucene40NormsDocValuesConsumer.files(info, files); } + /** + * Lucene 4.0 PerDocProducer implementation that uses compound file. + * + * @see Lucene40DocValuesFormat + */ public static class Lucene40NormsDocValuesProducer extends Lucene40DocValuesProducer { public Lucene40NormsDocValuesProducer(SegmentReadState state, @@ -77,6 +93,12 @@ public class Lucene40NormsFormat extends NormsFormat { } + /** + * Lucene 4.0 PerDocConsumer implementation that uses compound file. + * + * @see Lucene40DocValuesFormat + * @lucene.experimental + */ public static class Lucene40NormsDocValuesConsumer extends Lucene40DocValuesConsumer { public Lucene40NormsDocValuesConsumer(PerDocWriteState state, diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40PostingsReader.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40PostingsReader.java index 2af3226bb2f..0eb36aeff96 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40PostingsReader.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40PostingsReader.java @@ -38,8 +38,11 @@ import org.apache.lucene.util.Bits; import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.CodecUtil; -/** Concrete class that reads the current doc/freq/skip - * postings format. +/** + * Concrete class that reads the 4.0 frq/prox + * postings format. + * + * @see Lucene40PostingsFormat * @lucene.experimental */ public class Lucene40PostingsReader extends PostingsReaderBase { diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40PostingsWriter.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40PostingsWriter.java index a07f1fb246d..4fa5f2bbf4e 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40PostingsWriter.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40PostingsWriter.java @@ -38,7 +38,12 @@ import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.CodecUtil; import org.apache.lucene.util.IOUtils; -/** @lucene.experimental */ +/** + * Concrete class that writes the 4.0 frq/prx postings format. + * + * @see Lucene40PostingsFormat + * @lucene.experimental + */ public final class Lucene40PostingsWriter extends PostingsWriterBase { final static String CODEC = "Lucene40PostingsWriter"; diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40SegmentInfosReader.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40SegmentInfosReader.java index ce581ace00e..7070ff7bb3f 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40SegmentInfosReader.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40SegmentInfosReader.java @@ -30,7 +30,9 @@ import org.apache.lucene.store.Directory; import org.apache.lucene.store.IOContext; /** - * Default implementation of {@link SegmentInfosReader}. + * Lucene 4.0 implementation of {@link SegmentInfosReader}. + * + * @see Lucene40SegmentInfosFormat * @lucene.experimental */ public class Lucene40SegmentInfosReader extends SegmentInfosReader { diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40SegmentInfosWriter.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40SegmentInfosWriter.java index c0de7c249f4..670eae6de1c 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40SegmentInfosWriter.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40SegmentInfosWriter.java @@ -32,7 +32,9 @@ import org.apache.lucene.store.IndexOutput; import org.apache.lucene.util.IOUtils; /** - * Default implementation of {@link SegmentInfosWriter}. + * Lucene 4.0 implementation of {@link SegmentInfosWriter}. + * + * @see Lucene40SegmentInfosFormat * @lucene.experimental */ public class Lucene40SegmentInfosWriter extends SegmentInfosWriter { diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40SkipListReader.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40SkipListReader.java index 741a8273549..c082ec3e0cd 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40SkipListReader.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40SkipListReader.java @@ -24,8 +24,10 @@ import org.apache.lucene.codecs.MultiLevelSkipListReader; import org.apache.lucene.store.IndexInput; /** - * Implements the skip list reader for the default posting list format + * Implements the skip list reader for the 4.0 posting list format * that stores positions and payloads. + * + * @see Lucene40PostingsFormat * @lucene.experimental */ public class Lucene40SkipListReader extends MultiLevelSkipListReader { diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40SkipListWriter.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40SkipListWriter.java index e7167fd2bb8..5eb2d886f87 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40SkipListWriter.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40SkipListWriter.java @@ -25,8 +25,10 @@ import org.apache.lucene.codecs.MultiLevelSkipListWriter; /** - * Implements the skip list writer for the default posting list format + * Implements the skip list writer for the 4.0 posting list format * that stores positions and payloads. + * + * @see Lucene40PostingsFormat * @lucene.experimental */ public class Lucene40SkipListWriter extends MultiLevelSkipListWriter { diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsReader.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsReader.java index a7457404333..ab89821c857 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsReader.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsReader.java @@ -40,6 +40,7 @@ import java.util.Set; *

* It uses <segment>.fdt and <segment>.fdx; files. * + * @see Lucene40StoredFieldsFormat * @lucene.internal */ public final class Lucene40StoredFieldsReader extends StoredFieldsReader implements Cloneable, Closeable { diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsWriter.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsWriter.java index 868864833cf..c236d9c1042 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsWriter.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsWriter.java @@ -36,7 +36,14 @@ import org.apache.lucene.util.Bits; import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.IOUtils; -/** @lucene.experimental */ +/** + * Class responsible for writing stored document fields. + *

+ * It uses <segment>.fdt and <segment>.fdx; files. + * + * @see Lucene40StoredFieldsFormat + * @lucene.experimental + */ public final class Lucene40StoredFieldsWriter extends StoredFieldsWriter { // NOTE: bit 0 is free here! You can steal it! static final int FIELD_IS_BINARY = 1 << 1; diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40TermVectorsReader.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40TermVectorsReader.java index 8e83f6d0c7b..c0420d1ba95 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40TermVectorsReader.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40TermVectorsReader.java @@ -45,6 +45,13 @@ import org.apache.lucene.util.Bits; import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.IOUtils; +/** + * Lucene 4.0 Term Vectors reader. + *

+ * It reads .tvd, .tvf, and .tvx files. + * + * @see Lucene40TermVectorsFormat + */ public class Lucene40TermVectorsReader extends TermVectorsReader { // NOTE: if you make a new format, it must be larger than diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40TermVectorsWriter.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40TermVectorsWriter.java index a22e8562b8e..372db237f40 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40TermVectorsWriter.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40TermVectorsWriter.java @@ -47,6 +47,13 @@ import org.apache.lucene.util.StringHelper; // file; saves a seek to tvd only to read a 0 vint (and // saves a byte in tvd) +/** + * Lucene 4.0 Term Vectors writer. + *

+ * It writes .tvd, .tvf, and .tvx files. + * + * @see Lucene40TermVectorsFormat + */ public final class Lucene40TermVectorsWriter extends TermVectorsWriter { private final Directory directory; private final String segment; diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/package.html b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/package.html index 8a86bfeb3dd..6bde5694e6f 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/package.html +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/package.html @@ -167,7 +167,8 @@ term occurs in each document. Note that this will not exist if all fields in all documents omit position data.

  • -Normalization factors. For each field in each document, a value is stored +{@link org.apache.lucene.codecs.lucene40.Lucene40NormsFormat Normalization factors}. +For each field in each document, a value is stored that is multiplied into the score for hits on that field.
  • @@ -178,7 +179,8 @@ term frequency. To add Term Vectors to your index see the {@link org.apache.lucene.document.Field Field} constructors
  • -Per-document values. Like stored values, these are also keyed by document +{@link org.apache.lucene.codecs.lucene40.Lucene40DocValuesFormat Per-document values}. +Like stored values, these are also keyed by document number, but are generally intended to be loaded into main memory for fast access. Whereas stored values are generally intended for summary results from searches, per-document values are useful for things like scoring factors. @@ -270,12 +272,12 @@ systems that frequently run out of file handles. Stores position information about where a term occurs in the index -Norms +{@link org.apache.lucene.codecs.lucene40.Lucene40NormsFormat Norms} .nrm.cfs, .nrm.cfe Encodes length and boost factors for docs and fields -Per-Document Values +{@link org.apache.lucene.codecs.lucene40.Lucene40DocValuesFormat Per-Document Values} .dv.cfs, .dv.cfe Encodes additional scoring factors or other per-document information. diff --git a/lucene/core/src/java/org/apache/lucene/codecs/pulsing/PulsingPostingsReader.java b/lucene/core/src/java/org/apache/lucene/codecs/pulsing/PulsingPostingsReader.java index 18a59dbba87..18bd58867f0 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/pulsing/PulsingPostingsReader.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/pulsing/PulsingPostingsReader.java @@ -608,7 +608,11 @@ public class PulsingPostingsReader extends PostingsReaderBase { public Map enums(); } - /** @lucene.internal */ + /** + * Implementation of {@link PulsingEnumAttribute} for reuse of + * wrapped postings readers underneath pulsing. + * + * @lucene.internal */ public static final class PulsingEnumAttributeImpl extends AttributeImpl implements PulsingEnumAttribute { // we could store 'other', but what if someone 'chained' multiple postings readers, // this could cause problems? diff --git a/lucene/core/src/java/org/apache/lucene/index/DocValues.java b/lucene/core/src/java/org/apache/lucene/index/DocValues.java index 7d77326012d..ebf296385fc 100644 --- a/lucene/core/src/java/org/apache/lucene/index/DocValues.java +++ b/lucene/core/src/java/org/apache/lucene/index/DocValues.java @@ -548,7 +548,7 @@ public abstract class DocValues implements Closeable { * pointer per document to dereference the shared byte[]. * Use this type if your documents may share the same byte[]. *

    - * NOTE: Fields of this type will not store values for documents without and + * NOTE: Fields of this type will not store values for documents without an * explicitly provided value. If a documents value is accessed while no * explicit value is stored the returned {@link BytesRef} will be a 0-length * reference. Custom default values must be assigned explicitly. @@ -575,7 +575,7 @@ public abstract class DocValues implements Closeable { * {@link #BYTES_FIXED_DEREF}, but allowing each * document's value to be a different length. *

    - * NOTE: Fields of this type will not store values for documents without and + * NOTE: Fields of this type will not store values for documents without an * explicitly provided value. If a documents value is accessed while no * explicit value is stored the returned {@link BytesRef} will be a 0-length * reference. Custom default values must be assigned explicitly. @@ -589,7 +589,7 @@ public abstract class DocValues implements Closeable { * {@link #BYTES_FIXED_SORTED}, but allowing each * document's value to be a different length. *

    - * NOTE: Fields of this type will not store values for documents without and + * NOTE: Fields of this type will not store values for documents without an * explicitly provided value. If a documents value is accessed while no * explicit value is stored the returned {@link BytesRef} will be a 0-length * reference.Custom default values must be assigned explicitly. @@ -607,7 +607,7 @@ public abstract class DocValues implements Closeable { * and allows access via document id, ordinal and by-value. * Use this type if your documents may share the same byte[]. *

    - * NOTE: Fields of this type will not store values for documents without and + * NOTE: Fields of this type will not store values for documents without an * explicitly provided value. If a documents value is accessed while no * explicit value is stored the returned {@link BytesRef} will be a 0-length * reference. Custom default values must be assigned diff --git a/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValue.java b/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValue.java index fd95d053ccd..57c966cdbb9 100755 --- a/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValue.java +++ b/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValue.java @@ -16,7 +16,11 @@ */ package org.apache.lucene.util.mutable; -/** @lucene.internal */ +/** + * Base class for all mutable values. + * + * @lucene.internal + */ public abstract class MutableValue implements Comparable { public boolean exists = true; diff --git a/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueBool.java b/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueBool.java index ee7144e3c78..fe724a62522 100644 --- a/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueBool.java +++ b/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueBool.java @@ -16,6 +16,10 @@ */ package org.apache.lucene.util.mutable; +/** + * {@link MutableValue} implementation of type + * boolean. + */ public class MutableValueBool extends MutableValue { public boolean value; diff --git a/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueDate.java b/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueDate.java index f0f48cf43bb..e95ace32267 100755 --- a/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueDate.java +++ b/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueDate.java @@ -18,6 +18,10 @@ package org.apache.lucene.util.mutable; import java.util.Date; +/** + * {@link MutableValue} implementation of type + * {@link Date}. + */ public class MutableValueDate extends MutableValueLong { @Override public Object toObject() { diff --git a/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueDouble.java b/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueDouble.java index 901f48b8e96..3d40f399696 100755 --- a/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueDouble.java +++ b/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueDouble.java @@ -16,6 +16,10 @@ */ package org.apache.lucene.util.mutable; +/** + * {@link MutableValue} implementation of type + * double. + */ public class MutableValueDouble extends MutableValue { public double value; diff --git a/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueFloat.java b/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueFloat.java index c8a28824254..91c0614f6c1 100755 --- a/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueFloat.java +++ b/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueFloat.java @@ -16,6 +16,10 @@ */ package org.apache.lucene.util.mutable; +/** + * {@link MutableValue} implementation of type + * float. + */ public class MutableValueFloat extends MutableValue { public float value; diff --git a/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueInt.java b/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueInt.java index d652b1ed0eb..fc7be611fcd 100755 --- a/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueInt.java +++ b/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueInt.java @@ -16,6 +16,10 @@ */ package org.apache.lucene.util.mutable; +/** + * {@link MutableValue} implementation of type + * int. + */ public class MutableValueInt extends MutableValue { public int value; diff --git a/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueLong.java b/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueLong.java index 372e5229ef7..cb89050a49e 100644 --- a/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueLong.java +++ b/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueLong.java @@ -16,6 +16,10 @@ */ package org.apache.lucene.util.mutable; +/** + * {@link MutableValue} implementation of type + * long. + */ public class MutableValueLong extends MutableValue { public long value; diff --git a/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueStr.java b/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueStr.java index 3c1d1e98c08..55dfe02aee9 100755 --- a/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueStr.java +++ b/lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueStr.java @@ -18,6 +18,10 @@ package org.apache.lucene.util.mutable; import org.apache.lucene.util.BytesRef; +/** + * {@link MutableValue} implementation of type + * {@link String}. + */ public class MutableValueStr extends MutableValue { public BytesRef value = new BytesRef(); diff --git a/lucene/core/src/java/overview.html b/lucene/core/src/java/overview.html index ad19074a546..14929b9c49f 100644 --- a/lucene/core/src/java/overview.html +++ b/lucene/core/src/java/overview.html @@ -152,11 +152,11 @@ index for all the files contained in a directory.

  • queries and searches an index. To demonstrate these, try something like: -
    > java -cp lucene.jar:lucene-demo.jar:lucene-analyzers-common.jar org.apache.lucene.demo.IndexFiles rec.food.recipes/soups +
    > java -cp lucene-core.jar:lucene-demo.jar:lucene-analyzers-common.jar org.apache.lucene.demo.IndexFiles rec.food.recipes/soups
    adding rec.food.recipes/soups/abalone-chowder
      [ ... ] -

    > java -cp lucene.jar:lucene-demo.jar:lucene-analyzers-common.jar org.apache.lucene.demo.SearchFiles +

    > java -cp lucene-core.jar:lucene-demo.jar:lucene-analyzers-common.jar org.apache.lucene.demo.SearchFiles
    Query: chowder
    Searching for: chowder
    34 total matching documents