Class QueryUtils
Utility class for sanity-checking queries.
Inheritance
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class QueryUtils : object
Methods
Name | Description |
---|---|
Check(Query) | Check the types of things query objects should be able to do. |
Check(Random, Query, IndexSearcher, Similarity) | |
Check(Random, Query, IndexSearcher, Boolean, Similarity) | |
CheckEqual(Query, Query) | |
CheckExplanations(Query, IndexSearcher) | deep check that explanations of a query 'score' correctly |
CheckFirstSkipTo(Query, IndexSearcher, Similarity) | check that first skip on just created scorers always goes to the right doc |
CheckHashEquals(Query) | check very basic hashCode and equals |
CheckSkipTo(Query, IndexSearcher, Similarity) | alternate scorer skipTo(),skipTo(),next(),next(),skipTo(),skipTo(), etc and ensure a hitcollector receives same docs and scores |
CheckUnequal(Query, Query) | |
PurgeFieldCache(IndexReader) | |
WrapUnderlyingReader(Random, IndexSearcher, Int32, Similarity) | Given an IndexSearcher, returns a new IndexSearcher whose IndexReader is a MultiReader containing the Reader of the original IndexSearcher, as well as several "empty" IndexReaders -- some of which will have deleted documents in them. this new IndexSearcher should behave exactly the same as the original IndexSearcher. |