RandomPostingsTester
Helper class extracted from BasePostingsFormatTestCase to exercise a postings format.
Types
Link copied to clipboard
Holds one field, term and ord.
Link copied to clipboard
Which features to test.
Link copied to clipboard
class SeedPostings(seed: Long, minDocFreq: Int, maxDocFreq: Int, options: IndexOptions, allowPayloads: Boolean) : PostingsEnum
Given the same random seed this always enumerates the same random postings
Functions
Link copied to clipboard
fun buildIndex(codec: Codec, dir: Directory, maxAllowed: IndexOptions, allowPayloads: Boolean, alwaysTestMax: Boolean): FieldsProducer
Link copied to clipboard
Link copied to clipboard
Indexes all fields/terms at the specified IndexOptions, and fully tests at that IndexOptions.
Link copied to clipboard
fun testTerms(fieldsSource: Fields, options: EnumSet<RandomPostingsTester.Option>, maxTestOptions: IndexOptions, maxIndexOptions: IndexOptions, alwaysTestMax: Boolean)