C# Class Lucene.Net.Search.TestExplanations

Inheritance: Lucene.Net.Util.LuceneTestCase
Datei anzeigen Open project: apache/lucenenet

Protected Properties

Property Type Description
Directory Directory
DocFields string[]
Reader IndexReader
Searcher IndexSearcher

Public Methods

Method Description
Bqtest ( Query q, int expDocNrs ) : void

Tests a query using qtest after wrapping it with both optB and reqB

OptB ( Query q ) : Query

MACRO: Wraps a Query in a BooleanQuery so that it is optional, along with a second prohibited clause which will never match anything

Qtest ( Query q, int expDocNrs ) : void

check the expDocNrs first, then check the query (and the explanations)

ReqB ( Query q ) : Query

MACRO: Wraps a Query in a BooleanQuery so that it is required, along with a second optional clause which will match everything

Sf ( string s, int b ) : SpanFirstQuery

MACRO for SpanFirst(SpanTermQuery)

Snear ( SpanQuery s, SpanQuery m, SpanQuery e, int slop, bool inOrder ) : SpanNearQuery

MACRO for SpanNearQuery containing three SpanQueries

Snear ( SpanQuery s, SpanQuery e, int slop, bool inOrder ) : SpanNearQuery

MACRO for SpanNearQuery containing two SpanQueries

Snear ( string s, string e, int slop, bool inOrder ) : SpanNearQuery

MACRO for SpanNearQuery containing two SpanTerm queries

Snear ( string s, string m, string e, int slop, bool inOrder ) : SpanNearQuery

MACRO for SpanNearQuery containing three SpanTerm queries

Snot ( SpanQuery i, SpanQuery e ) : SpanNotQuery

MACRO for SpanNotQuery

Sor ( SpanQuery s, SpanQuery e ) : SpanOrQuery

MACRO for SpanOrQuery containing two SpanQueries

Sor ( SpanQuery s, SpanQuery m, SpanQuery e ) : SpanOrQuery

MACRO for SpanOrQuery containing two SpanQueries

Sor ( string s, string e ) : SpanOrQuery

MACRO for SpanOrQuery containing two SpanTerm queries

Sor ( string s, string m, string e ) : SpanOrQuery

MACRO for SpanOrQuery containing three SpanTerm queries

St ( string s ) : SpanTermQuery

MACRO for SpanTermQuery

Ta ( string s ) : Term[]

helper for generating MultiPhraseQueries

TestNoop ( ) : void

Placeholder: JUnit freaks if you don't have one test ... making class abstract doesn't help

Private Methods

Method Description
AfterClassTestExplanations ( ) : void
BeforeClassTestExplanations ( ) : void

Method Details

Bqtest() public method

Tests a query using qtest after wrapping it with both optB and reqB
public Bqtest ( Query q, int expDocNrs ) : void
q Query
expDocNrs int
return void

OptB() public method

MACRO: Wraps a Query in a BooleanQuery so that it is optional, along with a second prohibited clause which will never match anything
public OptB ( Query q ) : Query
q Query
return Query

Qtest() public method

check the expDocNrs first, then check the query (and the explanations)
public Qtest ( Query q, int expDocNrs ) : void
q Query
expDocNrs int
return void

ReqB() public method

MACRO: Wraps a Query in a BooleanQuery so that it is required, along with a second optional clause which will match everything
public ReqB ( Query q ) : Query
q Query
return Query

Sf() public method

MACRO for SpanFirst(SpanTermQuery)
public Sf ( string s, int b ) : SpanFirstQuery
s string
b int
return SpanFirstQuery

Snear() public method

MACRO for SpanNearQuery containing three SpanQueries
public Snear ( SpanQuery s, SpanQuery m, SpanQuery e, int slop, bool inOrder ) : SpanNearQuery
s SpanQuery
m SpanQuery
e SpanQuery
slop int
inOrder bool
return SpanNearQuery

Snear() public method

MACRO for SpanNearQuery containing two SpanQueries
public Snear ( SpanQuery s, SpanQuery e, int slop, bool inOrder ) : SpanNearQuery
s SpanQuery
e SpanQuery
slop int
inOrder bool
return SpanNearQuery

Snear() public method

MACRO for SpanNearQuery containing two SpanTerm queries
public Snear ( string s, string e, int slop, bool inOrder ) : SpanNearQuery
s string
e string
slop int
inOrder bool
return SpanNearQuery

Snear() public method

MACRO for SpanNearQuery containing three SpanTerm queries
public Snear ( string s, string m, string e, int slop, bool inOrder ) : SpanNearQuery
s string
m string
e string
slop int
inOrder bool
return SpanNearQuery

Snot() public method

MACRO for SpanNotQuery
public Snot ( SpanQuery i, SpanQuery e ) : SpanNotQuery
i SpanQuery
e SpanQuery
return SpanNotQuery

Sor() public method

MACRO for SpanOrQuery containing two SpanQueries
public Sor ( SpanQuery s, SpanQuery e ) : SpanOrQuery
s SpanQuery
e SpanQuery
return SpanOrQuery

Sor() public method

MACRO for SpanOrQuery containing two SpanQueries
public Sor ( SpanQuery s, SpanQuery m, SpanQuery e ) : SpanOrQuery
s SpanQuery
m SpanQuery
e SpanQuery
return SpanOrQuery

Sor() public method

MACRO for SpanOrQuery containing two SpanTerm queries
public Sor ( string s, string e ) : SpanOrQuery
s string
e string
return SpanOrQuery

Sor() public method

MACRO for SpanOrQuery containing three SpanTerm queries
public Sor ( string s, string m, string e ) : SpanOrQuery
s string
m string
e string
return SpanOrQuery

St() public method

MACRO for SpanTermQuery
public St ( string s ) : SpanTermQuery
s string
return SpanTermQuery

Ta() public static method

helper for generating MultiPhraseQueries
public static Ta ( string s ) : Term[]
s string
return Term[]

TestNoop() public method

Placeholder: JUnit freaks if you don't have one test ... making class abstract doesn't help
public TestNoop ( ) : void
return void

Property Details

Directory protected_oe static_oe property

protected static Directory Directory
return Directory

DocFields protected_oe static_oe property

protected static string[] DocFields
return string[]

Reader protected_oe static_oe property

protected static IndexReader Reader
return IndexReader

Searcher protected_oe static_oe property

protected static IndexSearcher Searcher
return IndexSearcher