Package-level declarations

Types

Link copied to clipboard

Wraps a Scorer with additional checks

Link copied to clipboard

A collector that asserts that it is used correctly.

Link copied to clipboard

Helper class that adds some extra checks to ensure correct usage of IndexSearcher and Weight.

Link copied to clipboard
class AssertingMatches(matches: Matches) : Matches

An implementation of Matches with additional consistency checks.

Link copied to clipboard
class AssertingQuery(random: Random, in: Query) : Query

Assertion-enabled query.

Link copied to clipboard

Wraps another Scorable and asserts that scores are reasonable and only called when positioned

Link copied to clipboard

Wraps a Scorer with additional checks

Link copied to clipboard

Tests primitive queries (ie: that rewrite to themselves) to insure they match the expected set of docs, and that the score of each match is equal to the value of the scores explanation.

Link copied to clipboard

Abstract class to do basic tests for a RangeField query. Testing rigor inspired by BaseGeoPointTestCase

Link copied to clipboard
class BlockScoreQueryWrapper(query: Query, blockLength: Int) : Query

Query wrapper that reduces the size of max-score blocks to more easily detect problems with the max-score logic.

Link copied to clipboard
class BulkScorerWrapperScorer(scorer: BulkScorer, bufferSize: Int) : Scorer

A BulkScorer-backed scorer.

Link copied to clipboard
object CheckHits

Utility class for asserting expected hits in tests.

Link copied to clipboard
Link copied to clipboard

Collector that accumulates matching docs in a FixedBitSet

Link copied to clipboard

Base class for tests checking the Weight.matches implementations

Link copied to clipboard
object QueryUtils

Utility class for sanity-checking queries.

Link copied to clipboard
class RandomApproximationQuery(query: Query, random: Random) : Query

A Query that adds random approximations to its scorers.

Link copied to clipboard

An IndexSearcher that always uses the Scorer API, never BulkScorer.

Link copied to clipboard

Simple base class for checking search equivalence. Extend it, and write tests that create .randomTerms (all terms are single characters a-z), and use .assertSameSet and assertSubsetOf.

Link copied to clipboard

Base test class for simulating distributed search across multiple shards.