Package-level declarations

Types

Link copied to clipboard
class AlcoholicMergePolicy(tz: TimeZone, random: Random) : LogMergePolicy

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.

Link copied to clipboard

Filters the incoming reader and makes all documents appear deleted.

Link copied to clipboard
Link copied to clipboard

A FilterLeafReader that can be used to apply additional checks for tests.

Link copied to clipboard

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!

Link copied to clipboard

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!

Link copied to clipboard

Common tests to all index formats.

Link copied to clipboard

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.

Link copied to clipboard

Abstract class that performs basic testing of a codec's LiveDocsFormat.

Link copied to clipboard

Base test case for MergePolicy.

Link copied to clipboard

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!

Link copied to clipboard

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!

Link copied to clipboard

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!

Link copied to clipboard

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!

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Base class for CheckIndex tests.

Link copied to clipboard
object DocHelper

Helper functions for tests that handles documents

Link copied to clipboard

A FilterLeafReader that exposes only a subset of fields from the underlying wrapped reader.

Link copied to clipboard

A MergePolicy that only returns forced merges.

Link copied to clipboard

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!

Link copied to clipboard

CodecReader wrapper that performs all reads using the merging instance of the index formats.

Link copied to clipboard

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.

Link copied to clipboard

Shuffles field numbers around to try to trip bugs where field numbers are assumed to always be consistent across segments.

Link copied to clipboard
Link copied to clipboard

Shuffles field numbers around to try to trip bugs where field numbers are assumed to always be consistent across segments.

Link copied to clipboard

Mock IndexWriterEventListener to verify invocation of event methods

Link copied to clipboard

MergePolicy that makes random decisions for testing.

Link copied to clipboard

A MultiReader that has its own cache key, occasionally useful for testing purposes.

Link copied to clipboard
class PerThreadPKLookup(reader: IndexReader, idFieldName: String, prevEnumIndexes: Map<IndexReader.CacheKey, Int> = emptyMap(), reusableTermsEnums: Array<TermsEnum?> = emptyArray(), reusablePostingsEnums: Array<PostingsEnum?> = emptyArray())

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.

Link copied to clipboard

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.

Link copied to clipboard

Helper class extracted from BasePostingsFormatTestCase to exercise a postings format.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Utility class that spawns multiple indexing and searching threads.