Namespace Lucene.Net.Search
Classes
AssertingBulkOutOfOrderScorer
A crazy Lucene.Net.Search.BulkScorer that wraps another Lucene.Net.Search.BulkScorer but shuffles the order of the collected documents.
AssertingBulkScorer
Wraps a Lucene.Net.Search.Scorer with additional checks.
AssertingCollector
Wraps another Lucene.Net.Search.ICollector and checks that AcceptsDocsOutOfOrder is respected.
AssertingIndexSearcher
Helper class that adds some extra checks to ensure correct usage of Lucene.Net.Search.IndexSearcher and Lucene.Net.Search.Weight.
AssertingQuery
Assertion-enabled query.
AssertingScorer
Wraps a Lucene.Net.Search.Scorer with additional checks.
CheckHits
Utility class for asserting expected hits in tests.
ExplanationAsserter
Asserts that the score explanation for every document matching a query corresponds with the true score.
NOTE: this HitCollector should only be used with the Lucene.Net.Search.Query and Lucene.Net.Search.IndexSearcher specified at when it is constructed.ExplanationAssertingSearcher
An Lucene.Net.Search.IndexSearcher that implicitly checks hte explanation of every match whenever it executes a search.
FCInvisibleMultiReader
This is a Lucene.Net.Index.MultiReader that can be used for randomly wrapping other readers without creating Lucene.Net.Search.FieldCache insanity. The trick is to use an opaque/fake cache key.
QueryUtils
Utility class for sanity-checking queries.
RandomSimilarityProvider
Similarity implementation that randomizes Similarity implementations per-field.
The choices are 'sticky', so the selected algorithm is always used for the same field.SearchEquivalenceTestBase
Simple base class for checking search equivalence. Extend it, and write tests that create RandomTerm()s (all terms are single characters a-z), and use AssertSameSet(Query, Query) and AssertSubsetOf(Query, Query).
SearcherExpiredException
Thrown when the lease for a searcher has expired.
SetCollector
Just collects document ids into a set.
ShardSearchingTestBase
Base test class for simulating distributed search across multiple shards.
ShardSearchingTestBase.NodeState
ShardSearchingTestBase.NodeState.ShardIndexSearcher
Matches docs in the local shard but scores based on aggregated stats ("mock distributed scoring") from all nodes.
ShardSearchingTestBase.SearcherAndVersion
An Lucene.Net.Search.IndexSearcher and associated version (lease)