C# Class Lucene.Net.QueryParsers.Util.QueryParserTestBase

Show file Open project: apache/lucenenet

Public Properties

Property Type Description
qpAnalyzer Lucene.Net.Analysis.Analyzer

Public Methods

Method Description
AssertDateRangeQueryEquals ( ICommonQueryParserConfiguration cqpC, string field, string startDate, string endDate, System.DateTime endDateInclusive, Lucene.Net.Documents.DateTools resolution ) : void
AssertEscapedQueryEquals ( string query, Analyzer a, string result ) : void
AssertParseException ( string queryString ) : void
AssertParseException ( string queryString, Analyzer a ) : void
AssertQueryEquals ( ICommonQueryParserConfiguration cqpC, string field, string query, string result ) : void
AssertQueryEquals ( string query, Analyzer a, string result ) : void
AssertQueryEqualsDOA ( string query, Analyzer a, string result ) : void
AssertWildcardQueryEquals ( string query, bool lowercase, string result ) : void
AssertWildcardQueryEquals ( string query, bool lowercase, string result, bool allowLeadingWildcard ) : void
AssertWildcardQueryEquals ( string query, string result ) : void
GetParserConfig ( Analyzer a ) : ICommonQueryParserConfiguration
GetQuery ( string query ) : Query
GetQuery ( string query, Analyzer a ) : Query
GetQuery ( string query, ICommonQueryParserConfiguration cqpC ) : Query
GetQueryDOA ( string query, Analyzer a ) : Query
IsQueryParserException ( Exception exception ) : bool
SetAnalyzeRangeTerms ( ICommonQueryParserConfiguration cqpC, bool value ) : void
SetAutoGeneratePhraseQueries ( ICommonQueryParserConfiguration cqpC, bool value ) : void
SetDateResolution ( ICommonQueryParserConfiguration cqpC, string field, Lucene.Net.Documents.DateTools value ) : void
SetDefaultOperatorAND ( ICommonQueryParserConfiguration cqpC ) : void
SetDefaultOperatorOR ( ICommonQueryParserConfiguration cqpC ) : void
SetUp ( ) : void
TearDown ( ) : void
TestDefaultOperator ( ) : void
TestNewFieldQuery ( ) : void
TestStarParsing ( ) : void

Private Methods

Method Description
AfterClass ( ) : void
AssertHits ( int expected, String query, IndexSearcher @is ) : void
BeforeClass ( ) : void
EscapeDateString ( string s ) : string
GetDate ( System.DateTime d, Lucene.Net.Documents.DateTools resolution ) : string

for testing DateTools support

GetDate ( string s, Lucene.Net.Documents.DateTools resolution ) : string

for testing DateTools support

GetLocalizedDate ( int year, int month, int day ) : string
TestAutoGeneratePhraseQueriesOn ( ) : void
TestBooleanQuery ( ) : void
TestBoost ( ) : void
TestCJK ( ) : void
TestCJKBoostedPhrase ( ) : void
TestCJKBoostedTerm ( ) : void
TestCJKPhrase ( ) : void
TestCJKSloppyPhrase ( ) : void
TestCJKTerm ( ) : void
TestCollatedRange ( ) : void
TestDateRange ( ) : void
TestDistanceAsEditsParsing ( ) : void
TestEscaped ( ) : void
TestEscapedVsQuestionMarkAsWildcard ( ) : void
TestEscapedWildcard ( ) : void
TestException ( ) : void
TestLeadingWildcardType ( ) : void
TestMatchAllDocs ( ) : void
TestMatchAllQueryParsing ( ) : void
TestNestedAndClausesFoo ( ) : void
TestNumber ( ) : void
TestOperatorVsWhitespace ( ) : void
TestParseWildcardAndPhraseQueries ( ) : void
TestPhraseQueryPositionIncrements ( ) : void
TestPhraseQueryToString ( ) : void
TestPositionIncrement ( ) : void
TestPositionIncrements ( ) : void
TestPrecedence ( ) : void
TestPunct ( ) : void
TestQPA ( ) : void
TestQueryStringEscaping ( ) : void
TestRange ( ) : void
TestRangeWithPhrase ( ) : void
TestRegexps ( ) : void
TestSimple ( ) : void
TestSimpleDAO ( ) : void
TestSlop ( ) : void
TestStopwords ( ) : void
TestTabNewlineCarriageReturn ( ) : void
TestWildcard ( ) : void

Method Details

AssertDateRangeQueryEquals() public method

public AssertDateRangeQueryEquals ( ICommonQueryParserConfiguration cqpC, string field, string startDate, string endDate, System.DateTime endDateInclusive, Lucene.Net.Documents.DateTools resolution ) : void
cqpC ICommonQueryParserConfiguration
field string
startDate string
endDate string
endDateInclusive System.DateTime
resolution Lucene.Net.Documents.DateTools
return void

AssertEscapedQueryEquals() public method

public AssertEscapedQueryEquals ( string query, Analyzer a, string result ) : void
query string
a Lucene.Net.Analysis.Analyzer
result string
return void

AssertParseException() public method

public AssertParseException ( string queryString ) : void
queryString string
return void

AssertParseException() public method

public AssertParseException ( string queryString, Analyzer a ) : void
queryString string
a Lucene.Net.Analysis.Analyzer
return void

AssertQueryEquals() public method

public AssertQueryEquals ( ICommonQueryParserConfiguration cqpC, string field, string query, string result ) : void
cqpC ICommonQueryParserConfiguration
field string
query string
result string
return void

AssertQueryEquals() public method

public AssertQueryEquals ( string query, Analyzer a, string result ) : void
query string
a Lucene.Net.Analysis.Analyzer
result string
return void

AssertQueryEqualsDOA() public method

public AssertQueryEqualsDOA ( string query, Analyzer a, string result ) : void
query string
a Lucene.Net.Analysis.Analyzer
result string
return void

AssertWildcardQueryEquals() public method

public AssertWildcardQueryEquals ( string query, bool lowercase, string result ) : void
query string
lowercase bool
result string
return void

AssertWildcardQueryEquals() public method

public AssertWildcardQueryEquals ( string query, bool lowercase, string result, bool allowLeadingWildcard ) : void
query string
lowercase bool
result string
allowLeadingWildcard bool
return void

AssertWildcardQueryEquals() public method

public AssertWildcardQueryEquals ( string query, string result ) : void
query string
result string
return void

GetParserConfig() public abstract method

public abstract GetParserConfig ( Analyzer a ) : ICommonQueryParserConfiguration
a Lucene.Net.Analysis.Analyzer
return ICommonQueryParserConfiguration

GetQuery() public method

public GetQuery ( string query ) : Query
query string
return Lucene.Net.Search.Query

GetQuery() public abstract method

public abstract GetQuery ( string query, Analyzer a ) : Query
query string
a Lucene.Net.Analysis.Analyzer
return Lucene.Net.Search.Query

GetQuery() public abstract method

public abstract GetQuery ( string query, ICommonQueryParserConfiguration cqpC ) : Query
query string
cqpC ICommonQueryParserConfiguration
return Lucene.Net.Search.Query

GetQueryDOA() public method

public GetQueryDOA ( string query, Analyzer a ) : Query
query string
a Lucene.Net.Analysis.Analyzer
return Lucene.Net.Search.Query

IsQueryParserException() public abstract method

public abstract IsQueryParserException ( Exception exception ) : bool
exception System.Exception
return bool

SetAnalyzeRangeTerms() public abstract method

public abstract SetAnalyzeRangeTerms ( ICommonQueryParserConfiguration cqpC, bool value ) : void
cqpC ICommonQueryParserConfiguration
value bool
return void

SetAutoGeneratePhraseQueries() public abstract method

public abstract SetAutoGeneratePhraseQueries ( ICommonQueryParserConfiguration cqpC, bool value ) : void
cqpC ICommonQueryParserConfiguration
value bool
return void

SetDateResolution() public abstract method

public abstract SetDateResolution ( ICommonQueryParserConfiguration cqpC, string field, Lucene.Net.Documents.DateTools value ) : void
cqpC ICommonQueryParserConfiguration
field string
value Lucene.Net.Documents.DateTools
return void

SetDefaultOperatorAND() public abstract method

public abstract SetDefaultOperatorAND ( ICommonQueryParserConfiguration cqpC ) : void
cqpC ICommonQueryParserConfiguration
return void

SetDefaultOperatorOR() public abstract method

public abstract SetDefaultOperatorOR ( ICommonQueryParserConfiguration cqpC ) : void
cqpC ICommonQueryParserConfiguration
return void

SetUp() public method

public SetUp ( ) : void
return void

TearDown() public method

public TearDown ( ) : void
return void

TestDefaultOperator() public abstract method

public abstract TestDefaultOperator ( ) : void
return void

TestNewFieldQuery() public abstract method

public abstract TestNewFieldQuery ( ) : void
return void

TestStarParsing() public abstract method

public abstract TestStarParsing ( ) : void
return void

Property Details

qpAnalyzer public static property

public static Analyzer,Lucene.Net.Analysis qpAnalyzer
return Lucene.Net.Analysis.Analyzer