Package-level declarations
Types
Merge policy for testing, it is like an alcoholic. It drinks (merges) at night, and randomly decides what to drink. During the daytime it sleeps.
Filters the incoming reader and makes all documents appear deleted.
A DirectoryReader that wraps all its subreaders with AssertingLeafReader
A FilterLeafReader that can be used to apply additional checks for tests.
Abstract class to do basic tests for a compound format. NOTE: This test focuses on the compound impl, nothing else. The stretch goal is for this test to be so thorough in testing a new CompoundFormat that if this test passes, then all Lucene tests should also pass. Ie, if there is some bug in a given CompoundFormat that this test fails to catch then this test needs to be improved!
Extends BaseDocValuesFormatTestCase to add compression checks.
Extends LegacyBaseDocValuesFormatTestCase and adds checks for DocValuesSkipper.
Abstract class to do basic tests for fis format. NOTE: This test focuses on the fis impl, nothing else. The stretch goal is for this test to be so thorough in testing a new fis format that if this test passes, then all Lucene tests should also pass. Ie, if there is some bug in a given fis Format that this test fails to catch then this test needs to be improved!
Common tests to all index formats.
Base class aiming at testing vectors formats. To test a new format, all you need is to register a new Codec which uses it and extend this class and override .getCodec.
Abstract class that performs basic testing of a codec's LiveDocsFormat.
Base test case for MergePolicy.
Abstract class to do basic tests for a norms format. NOTE: This test focuses on the norms impl, nothing else. The stretch goal is for this test to be so thorough in testing a new NormsFormat that if this test passes, then all Lucene tests should also pass. Ie, if there is some bug in a given NormsFormat that this test fails to catch then this test needs to be improved!
Abstract class to do basic tests for a points format. NOTE: This test focuses on the points impl, nothing else. The stretch goal is for this test to be so thorough in testing a new PointsFormat that if this test passes, then all Lucene tests should also pass. Ie, if there is some bug in a given PointsFormat that this test fails to catch then this test needs to be improved!
Abstract class to do basic tests for a postings format. NOTE: This test focuses on the postings (docs/freqs/positions/payloads/offsets) impl, not the terms dict. The stretch goal is for this test to be so thorough in testing a new PostingsFormat that if this test passes, then all Lucene tests should also pass. Ie, if there is some bug in a given PostingsFormat that this test fails to catch then this test needs to be improved!
Abstract class to do basic tests for si format. NOTE: This test focuses on the si impl, nothing else. The stretch goal is for this test to be so thorough in testing a new si format that if this test passes, then all Lucene tests should also pass. Ie, if there is some bug in a given si Format that this test fails to catch then this test needs to be improved!
Base class aiming at testing stored fields formats. To test a new format, all you need is to register a new Codec which uses it and extend this class and override .getCodec.
Base class aiming at testing term vectors formats. To test a new format, all you need is to register a new Codec which uses it and extend this class and override .getCodec.
Base class for CheckIndex tests.
A FilterLeafReader that exposes only a subset of fields from the underlying wrapped reader.
A MergePolicy that only returns forced merges.
Abstract class to do basic tests for a docvalues format. NOTE: This test focuses on the docvalues impl, nothing else. The stretch goal is for this test to be so thorough in testing a new DocValuesFormat that if this test passes, then all Lucene tests should also pass. Ie, if there is some bug in a given DocValuesFormat that this test fails to catch then this test needs to be improved!
CodecReader wrapper that performs all reads using the merging instance of the index formats.
DirectoryReader wrapper that uses the merge instances of the wrapped [ ]s. NOTE: This class will fail to work if the leaves of the wrapped directory are not codec readers.
Shuffles field numbers around to try to trip bugs where field numbers are assumed to always be consistent across segments.
A DirectoryReader that wraps all its subreaders with MismatchedLeafReader
Shuffles field numbers around to try to trip bugs where field numbers are assumed to always be consistent across segments.
Mock IndexWriterEventListener to verify invocation of event methods
MergePolicy that makes random decisions for testing.
A MultiReader that has its own cache key, occasionally useful for testing purposes.
Utility class to do efficient primary-key (only 1 doc contains the given term) lookups by segment, re-using the enums. This class is not thread safe, so it is the caller's job to create and use one instance of this per thread. Do not use this if a term may appear in more than one document! It will only return the first one it finds.
Silly class that randomizes the indexing experience. EG it may swap in a different merge policy/scheduler; may commit periodically; may or may not forceMerge in the end, may flush by doc count instead of RAM, etc.
Helper class extracted from BasePostingsFormatTestCase to exercise a postings format.
A ConcurrentMergeScheduler that ignores allowed exceptions.
Utility class that spawns multiple indexing and searching threads.