C# Class Lucene.Net.QueryParsers.Classic.TestQueryParser

显示文件 Open project: apache/lucenenet

Public Methods

Method Description
GetParser ( Analyzer a ) : QueryParser
GetParserConfig ( Analyzer a ) : ICommonQueryParserConfiguration
GetQuery ( string query, Analyzer a ) : Query
GetQuery ( string query, ICommonQueryParserConfiguration cqpC ) : 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

Private Methods

Method Description
TestAutoGeneratePhraseQueriesOn ( ) : void
TestBooleanQuery ( ) : void
TestBoost ( ) : void
TestCJK ( ) : void
TestCJKBoostedPhrase ( ) : void
TestCJKBoostedTerm ( ) : void
TestCJKPhrase ( ) : void
TestCJKSloppyPhrase ( ) : void
TestCJKSynonym ( ) : void
TestCJKSynonymsAND ( ) : void
TestCJKSynonymsAND2 ( ) : void
TestCJKSynonymsOR ( ) : void
TestCJKSynonymsOR2 ( ) : void
TestCJKSynonymsPhrase ( ) : void
TestCJKTerm ( ) : void
TestCollatedRange ( ) : void
TestCustomQueryParserFuzzy ( ) : void
TestCustomQueryParserWildcard ( ) : void
TestDateRange ( ) : void
TestDefaultOperator ( ) : void
TestDistanceAsEditsParsing ( ) : void
TestEscaped ( ) : void
TestEscapedVsQuestionMarkAsWildcard ( ) : void
TestEscapedWildcard ( ) : void
TestException ( ) : void
TestFuzzySlopeExtendability ( ) : void
TestLeadingWildcardType ( ) : void
TestMatchAllDocs ( ) : void
TestMatchAllQueryParsing ( ) : void
TestNestedAndClausesFoo ( ) : void
TestNewFieldQuery ( ) : void
TestNumber ( ) : void
TestOperatorVsWhitespace ( ) : void
TestParseWildcardAndPhraseQueries ( ) : void
TestPhraseQueryPositionIncrements ( ) : void
TestPhraseQueryToString ( ) : void
TestPositionIncrement ( ) : void
TestPositionIncrements ( ) : void
TestPrecedence ( ) : void
TestProtectedCtors ( ) : void
TestPunct ( ) : void
TestQPA ( ) : void
TestQueryStringEscaping ( ) : void
TestRange ( ) : void
TestRangeWithPhrase ( ) : void
TestRegexps ( ) : void
TestSimple ( ) : void
TestSimpleDAO ( ) : void
TestSlop ( ) : void
TestStarParsing ( ) : void
TestStopwords ( ) : void
TestSynonyms ( ) : void
TestSynonymsPhrase ( ) : void
TestTabNewlineCarriageReturn ( ) : void
TestWildcard ( ) : void

Method Details

GetParser() public method

public GetParser ( Analyzer a ) : QueryParser
a Lucene.Net.Analysis.Analyzer
return QueryParser

GetParserConfig() public method

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

GetQuery() public method

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

GetQuery() public method

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

IsQueryParserException() public method

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

SetAnalyzeRangeTerms() public method

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

SetAutoGeneratePhraseQueries() public method

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

SetDateResolution() public method

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

SetDefaultOperatorAND() public method

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

SetDefaultOperatorOR() public method

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