|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.junit.Assert
org.apache.lucene.util.LuceneTestCase
org.apache.lucene.queryParser.QueryParserTestBase
public abstract class QueryParserTestBase
Base Test class for QueryParser subclasses
Nested Class Summary | |
---|---|
static class |
QueryParserTestBase.QPTestAnalyzer
Filters LowerCaseTokenizer with QPTestFilter. |
static class |
QueryParserTestBase.QPTestFilter
Filter which discards the token 'stop' and which expands the token 'phrase' into 'phrase1 phrase2' |
static class |
QueryParserTestBase.QPTestParser
Test QueryParser that does not allow fuzzy or wildcard queries. |
Nested classes/interfaces inherited from class org.apache.lucene.util.LuceneTestCase |
---|
LuceneTestCase.Nightly |
Field Summary | |
---|---|
static org.apache.lucene.analysis.Analyzer |
qpAnalyzer
|
Fields inherited from class org.apache.lucene.util.LuceneTestCase |
---|
classRules, random, RANDOM_MULTIPLIER, ruleChain, stores, TEMP_DIR, TEST_CLEAN_THREADS, TEST_DIRECTORY, TEST_ITER, TEST_ITER_MIN, TEST_LINE_DOCS_FILE, TEST_LOCALE, TEST_NIGHTLY, TEST_SEED, TEST_TIMEZONE, TEST_VERSION_CURRENT, testsFailed, VERBOSE |
Constructor Summary | |
---|---|
QueryParserTestBase()
|
Method Summary | |
---|---|
void |
assertDateRangeQueryEquals(org.apache.lucene.queryParser.QueryParser qp,
String field,
String startDate,
String endDate,
Date endDateInclusive,
org.apache.lucene.document.DateTools.Resolution resolution)
|
void |
assertEscapedQueryEquals(String query,
org.apache.lucene.analysis.Analyzer a,
String result)
|
void |
assertParseException(String queryString)
|
void |
assertQueryEquals(org.apache.lucene.queryParser.QueryParser qp,
String field,
String query,
String result)
|
void |
assertQueryEquals(String query,
org.apache.lucene.analysis.Analyzer a,
String result)
|
void |
assertQueryEqualsDOA(String query,
org.apache.lucene.analysis.Analyzer a,
String result)
|
void |
assertWildcardQueryEquals(String query,
boolean lowercase,
String result)
|
void |
assertWildcardQueryEquals(String query,
boolean lowercase,
String result,
boolean allowLeadingWildcard)
|
void |
assertWildcardQueryEquals(String query,
String result)
|
abstract org.apache.lucene.queryParser.QueryParser |
getParser(org.apache.lucene.analysis.Analyzer a)
|
org.apache.lucene.search.Query |
getQuery(String query,
org.apache.lucene.analysis.Analyzer a)
|
org.apache.lucene.search.Query |
getQueryDOA(String query,
org.apache.lucene.analysis.Analyzer a)
|
void |
setUp()
For subclassing only. |
void |
tearDown()
For subclassing only. |
void |
testAutoGeneratePhraseQueriesOn()
|
void |
testBooleanQuery()
|
void |
testBoost()
|
void |
testCJK()
|
void |
testCJKBoostedPhrase()
|
void |
testCJKBoostedTerm()
|
void |
testCJKPhrase()
|
void |
testCJKSloppyPhrase()
|
void |
testCJKTerm()
|
void |
testCustomQueryParserFuzzy()
|
void |
testCustomQueryParserWildcard()
|
void |
testDateRange()
|
void |
testEscaped()
|
void |
testException()
|
void |
testFarsiRangeCollating()
|
void |
testLeadingWildcardType()
|
void |
testLegacyDateRange()
for testing legacy DateField support |
void |
testLocalDateFormat()
|
void |
testMatchAllDocs()
|
void |
testNumber()
|
void |
testPositionIncrement()
|
void |
testPositionIncrements()
|
void |
testPrecedence()
This test differs from TestPrecedenceQueryParser |
void |
testProtectedCtors()
|
void |
testPunct()
|
void |
testQPA()
|
void |
testQueryStringEscaping()
|
void |
testRange()
|
void |
testSimple()
|
void |
testSimpleDAO()
|
void |
testSlop()
|
void |
testStarParsing()
|
void |
testStopwords()
|
void |
testTabNewlineCarriageReturn()
|
void |
testWildcard()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static org.apache.lucene.analysis.Analyzer qpAnalyzer
Constructor Detail |
---|
public QueryParserTestBase()
Method Detail |
---|
public void setUp() throws Exception
LuceneTestCase
super.setUp()
.
setUp
in class LuceneTestCase
Exception
public abstract org.apache.lucene.queryParser.QueryParser getParser(org.apache.lucene.analysis.Analyzer a) throws Exception
Exception
public org.apache.lucene.search.Query getQuery(String query, org.apache.lucene.analysis.Analyzer a) throws Exception
Exception
public void assertQueryEquals(String query, org.apache.lucene.analysis.Analyzer a, String result) throws Exception
Exception
public void assertQueryEquals(org.apache.lucene.queryParser.QueryParser qp, String field, String query, String result) throws Exception
Exception
public void assertEscapedQueryEquals(String query, org.apache.lucene.analysis.Analyzer a, String result) throws Exception
Exception
public void assertWildcardQueryEquals(String query, boolean lowercase, String result, boolean allowLeadingWildcard) throws Exception
Exception
public void assertWildcardQueryEquals(String query, boolean lowercase, String result) throws Exception
Exception
public void assertWildcardQueryEquals(String query, String result) throws Exception
Exception
public org.apache.lucene.search.Query getQueryDOA(String query, org.apache.lucene.analysis.Analyzer a) throws Exception
Exception
public void assertQueryEqualsDOA(String query, org.apache.lucene.analysis.Analyzer a, String result) throws Exception
Exception
public void testCJK() throws Exception
Exception
public void testCJKTerm() throws Exception
Exception
public void testCJKBoostedTerm() throws Exception
Exception
public void testCJKPhrase() throws Exception
Exception
public void testCJKBoostedPhrase() throws Exception
Exception
public void testCJKSloppyPhrase() throws Exception
Exception
public void testAutoGeneratePhraseQueriesOn() throws Exception
Exception
public void testSimple() throws Exception
Exception
public void testPunct() throws Exception
Exception
public void testSlop() throws Exception
Exception
public void testNumber() throws Exception
Exception
public void testWildcard() throws Exception
Exception
public void testLeadingWildcardType() throws Exception
Exception
public void testQPA() throws Exception
Exception
public void testRange() throws Exception
Exception
public void testFarsiRangeCollating() throws Exception
Exception
public void testLegacyDateRange() throws Exception
Exception
public void testDateRange() throws Exception
Exception
public void assertDateRangeQueryEquals(org.apache.lucene.queryParser.QueryParser qp, String field, String startDate, String endDate, Date endDateInclusive, org.apache.lucene.document.DateTools.Resolution resolution) throws Exception
Exception
public void testEscaped() throws Exception
Exception
public void testQueryStringEscaping() throws Exception
Exception
public void testTabNewlineCarriageReturn() throws Exception
Exception
public void testSimpleDAO() throws Exception
Exception
public void testBoost() throws Exception
Exception
public void assertParseException(String queryString) throws Exception
Exception
public void testException() throws Exception
Exception
public void testCustomQueryParserWildcard()
public void testCustomQueryParserFuzzy() throws Exception
Exception
public void testBooleanQuery() throws Exception
Exception
public void testPrecedence() throws Exception
Exception
public void testLocalDateFormat() throws IOException, org.apache.lucene.queryParser.ParseException
IOException
org.apache.lucene.queryParser.ParseException
public void testStarParsing() throws Exception
Exception
public void testStopwords() throws Exception
Exception
public void testPositionIncrement() throws Exception
Exception
public void testMatchAllDocs() throws Exception
Exception
public void tearDown() throws Exception
LuceneTestCase
super.tearDown()
.
tearDown
in class LuceneTestCase
Exception
public void testPositionIncrements() throws Exception
Exception
public void testProtectedCtors() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |