C# 클래스 Lucene.Net.QueryParsers.Util.QueryParserTestBase

파일 보기 프로젝트 열기: apache/lucenenet

공개 프로퍼티들

프로퍼티 타입 설명
qpAnalyzer Lucene.Net.Analysis.Analyzer

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AssertDateRangeQueryEquals() 공개 메소드

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
리턴 void

AssertEscapedQueryEquals() 공개 메소드

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

AssertParseException() 공개 메소드

public AssertParseException ( string queryString ) : void
queryString string
리턴 void

AssertParseException() 공개 메소드

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

AssertQueryEquals() 공개 메소드

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

AssertQueryEquals() 공개 메소드

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

AssertQueryEqualsDOA() 공개 메소드

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

AssertWildcardQueryEquals() 공개 메소드

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

AssertWildcardQueryEquals() 공개 메소드

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

AssertWildcardQueryEquals() 공개 메소드

public AssertWildcardQueryEquals ( string query, string result ) : void
query string
result string
리턴 void

GetParserConfig() 공개 추상적인 메소드

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

GetQuery() 공개 메소드

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

GetQuery() 공개 추상적인 메소드

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

GetQuery() 공개 추상적인 메소드

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

GetQueryDOA() 공개 메소드

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

IsQueryParserException() 공개 추상적인 메소드

public abstract IsQueryParserException ( Exception exception ) : bool
exception System.Exception
리턴 bool

SetAnalyzeRangeTerms() 공개 추상적인 메소드

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

SetAutoGeneratePhraseQueries() 공개 추상적인 메소드

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

SetDateResolution() 공개 추상적인 메소드

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

SetDefaultOperatorAND() 공개 추상적인 메소드

public abstract SetDefaultOperatorAND ( ICommonQueryParserConfiguration cqpC ) : void
cqpC ICommonQueryParserConfiguration
리턴 void

SetDefaultOperatorOR() 공개 추상적인 메소드

public abstract SetDefaultOperatorOR ( ICommonQueryParserConfiguration cqpC ) : void
cqpC ICommonQueryParserConfiguration
리턴 void

SetUp() 공개 메소드

public SetUp ( ) : void
리턴 void

TearDown() 공개 메소드

public TearDown ( ) : void
리턴 void

TestDefaultOperator() 공개 추상적인 메소드

public abstract TestDefaultOperator ( ) : void
리턴 void

TestNewFieldQuery() 공개 추상적인 메소드

public abstract TestNewFieldQuery ( ) : void
리턴 void

TestStarParsing() 공개 추상적인 메소드

public abstract TestStarParsing ( ) : void
리턴 void

프로퍼티 상세

qpAnalyzer 공개적으로 정적으로 프로퍼티

public static Analyzer,Lucene.Net.Analysis qpAnalyzer
리턴 Lucene.Net.Analysis.Analyzer