C# Class Lucene.Net.QueryParsers.Flexible.Standard.TestStandardQP

Tests QueryParser.
Show file Open project: apache/lucenenet

Public Methods

Method Description
GetParser ( Analyzer a ) : StandardQueryParser
GetParserConfig ( Analyzer a ) : ICommonQueryParserConfiguration
GetQuery ( String query, Analyzer a ) : Query
GetQuery ( String query, ICommonQueryParserConfiguration cqpC ) : Query
IsQueryParserException ( Exception exception ) : bool
Parse ( String query, StandardQueryParser qp ) : Query
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
TestCJKTerm ( ) : void
TestCollatedRange ( ) : void
TestDateRange ( ) : void
TestDefaultOperator ( ) : void
TestDistanceAsEditsParsing ( ) : void
TestEscaped ( ) : void
TestEscapedVsQuestionMarkAsWildcard ( ) : void
TestEscapedWildcard ( ) : void
TestException ( ) : 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
TestPunct ( ) : void
TestQPA ( ) : void
TestQueryStringEscaping ( ) : void
TestRange ( ) : void
TestRangeWithPhrase ( ) : void
TestRegexps ( ) : void
TestSimple ( ) : void
TestSimpleDAO ( ) : void
TestSlop ( ) : void
TestStarParsing ( ) : void
TestStopwords ( ) : void
TestTabNewlineCarriageReturn ( ) : void
TestWildcard ( ) : void

Method Details

GetParser() public method

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

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

Parse() public method

public Parse ( String query, StandardQueryParser qp ) : Query
query String
qp StandardQueryParser
return Lucene.Net.Search.Query

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