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

Afficher le fichier Open project: apache/lucenenet

Méthodes publiques

Свойство Type Description
qpAnalyzer Lucene.Net.Analysis.Analyzer

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

AssertEscapedQueryEquals() public méthode

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

AssertParseException() public méthode

public AssertParseException ( string queryString ) : void
queryString string
Résultat void

AssertParseException() public méthode

public AssertParseException ( string queryString, Analyzer a ) : void
queryString string
a Lucene.Net.Analysis.Analyzer
Résultat void

AssertQueryEquals() public méthode

public AssertQueryEquals ( ICommonQueryParserConfiguration cqpC, string field, string query, string result ) : void
cqpC ICommonQueryParserConfiguration
field string
query string
result string
Résultat void

AssertQueryEquals() public méthode

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

AssertQueryEqualsDOA() public méthode

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

AssertWildcardQueryEquals() public méthode

public AssertWildcardQueryEquals ( string query, bool lowercase, string result ) : void
query string
lowercase bool
result string
Résultat void

AssertWildcardQueryEquals() public méthode

public AssertWildcardQueryEquals ( string query, bool lowercase, string result, bool allowLeadingWildcard ) : void
query string
lowercase bool
result string
allowLeadingWildcard bool
Résultat void

AssertWildcardQueryEquals() public méthode

public AssertWildcardQueryEquals ( string query, string result ) : void
query string
result string
Résultat void

GetParserConfig() public abstract méthode

public abstract GetParserConfig ( Analyzer a ) : ICommonQueryParserConfiguration
a Lucene.Net.Analysis.Analyzer
Résultat ICommonQueryParserConfiguration

GetQuery() public méthode

public GetQuery ( string query ) : Query
query string
Résultat Lucene.Net.Search.Query

GetQuery() public abstract méthode

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

GetQuery() public abstract méthode

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

GetQueryDOA() public méthode

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

IsQueryParserException() public abstract méthode

public abstract IsQueryParserException ( Exception exception ) : bool
exception System.Exception
Résultat bool

SetAnalyzeRangeTerms() public abstract méthode

public abstract SetAnalyzeRangeTerms ( ICommonQueryParserConfiguration cqpC, bool value ) : void
cqpC ICommonQueryParserConfiguration
value bool
Résultat void

SetAutoGeneratePhraseQueries() public abstract méthode

public abstract SetAutoGeneratePhraseQueries ( ICommonQueryParserConfiguration cqpC, bool value ) : void
cqpC ICommonQueryParserConfiguration
value bool
Résultat void

SetDateResolution() public abstract méthode

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

SetDefaultOperatorAND() public abstract méthode

public abstract SetDefaultOperatorAND ( ICommonQueryParserConfiguration cqpC ) : void
cqpC ICommonQueryParserConfiguration
Résultat void

SetDefaultOperatorOR() public abstract méthode

public abstract SetDefaultOperatorOR ( ICommonQueryParserConfiguration cqpC ) : void
cqpC ICommonQueryParserConfiguration
Résultat void

SetUp() public méthode

public SetUp ( ) : void
Résultat void

TearDown() public méthode

public TearDown ( ) : void
Résultat void

TestDefaultOperator() public abstract méthode

public abstract TestDefaultOperator ( ) : void
Résultat void

TestNewFieldQuery() public abstract méthode

public abstract TestNewFieldQuery ( ) : void
Résultat void

TestStarParsing() public abstract méthode

public abstract TestStarParsing ( ) : void
Résultat void

Property Details

qpAnalyzer public_oe static_oe property

public static Analyzer,Lucene.Net.Analysis qpAnalyzer
Résultat Lucene.Net.Analysis.Analyzer