| org.apache.lucene.util.LuceneTestCase org.apache.lucene.search.TestExplanations
All known Subclasses: org.apache.lucene.search.TestComplexExplanations, org.apache.lucene.search.TestSimpleExplanations, org.apache.lucene.search.spans.TestSpanExplanations,
TestExplanations | public class TestExplanations extends LuceneTestCase (Code) | | Tests primative 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.
The assumption is that if all of the "primative" queries work well,
then anythingthat rewrites to a primative will work well also.
See Also: "Subclasses for actual tests" |
Inner Class :public static class ItemizedFilter extends Filter | |
Method Summary | |
public void | bqtest(Query q, int[] expDocNrs) | public void | bqtest(String queryText, int[] expDocNrs) | public Query | makeQuery(String queryText) | public Query | optB(String q) | public Query | optB(Query q) | public void | qtest(String queryText, int[] expDocNrs) | public void | qtest(Query q, int[] expDocNrs) | public Query | reqB(String q) | public Query | reqB(Query q) | public void | setUp() | public SpanFirstQuery | sf(String s, int b) | public SpanNearQuery | snear(String s, String e, int slop, boolean inOrder) | public SpanNearQuery | snear(SpanQuery s, SpanQuery e, int slop, boolean inOrder) | public SpanNearQuery | snear(String s, String m, String e, int slop, boolean inOrder) | public SpanNearQuery | snear(SpanQuery s, SpanQuery m, SpanQuery e, int slop, boolean inOrder) | public SpanNotQuery | snot(SpanQuery i, SpanQuery e) | public SpanOrQuery | sor(String s, String e) | public SpanOrQuery | sor(SpanQuery s, SpanQuery e) | public SpanOrQuery | sor(String s, String m, String e) | public SpanOrQuery | sor(SpanQuery s, SpanQuery m, SpanQuery e) | public SpanTermQuery | st(String s) | public static Term[] | ta(String[] s) | public void | tearDown() | public void | testNoop() Placeholder: JUnit freaks if you don't have one test ... |
optB | public Query optB(String q) throws Exception(Code) | | MACRO: Wraps a Query in a BooleanQuery so that it is optional, along
with a second prohibited clause which will never match anything
|
optB | public Query optB(Query q) throws Exception(Code) | | MACRO: Wraps a Query in a BooleanQuery so that it is optional, along
with a second prohibited clause which will never match anything
|
qtest | public void qtest(String queryText, int[] expDocNrs) throws Exception(Code) | | check the expDocNrs first, then check the query (and the explanations)
|
qtest | public void qtest(Query q, int[] expDocNrs) throws Exception(Code) | | check the expDocNrs first, then check the query (and the explanations)
|
reqB | public Query reqB(String q) throws Exception(Code) | | MACRO: Wraps a Query in a BooleanQuery so that it is required, along
with a second optional clause which will match everything
|
reqB | public Query reqB(Query q) throws Exception(Code) | | MACRO: Wraps a Query in a BooleanQuery so that it is required, along
with a second optional clause which will match everything
|
ta | public static Term[] ta(String[] s)(Code) | | helper for generating MultiPhraseQueries
|
testNoop | public void testNoop()(Code) | | Placeholder: JUnit freaks if you don't have one test ... making
class abstract doesn't help
|
|
|