Class SearchEquivalenceTestBase
Inheritance
System.Object
SearchEquivalenceTestBase
Assembly: Lucene.Net.TestFramework.dll
Syntax
public abstract class SearchEquivalenceTestBase : LuceneTestCase
Fields
|
Improve this Doc
View Source
m_analyzer
Declaration
protected static Analyzer m_analyzer
Field Value
Type |
Description |
Analyzer |
|
|
Improve this Doc
View Source
m_directory
Declaration
protected static Directory m_directory
Field Value
Type |
Description |
Directory |
|
|
Improve this Doc
View Source
m_reader
Declaration
protected static IndexReader m_reader
Field Value
Type |
Description |
IndexReader |
|
|
Improve this Doc
View Source
m_s1
Declaration
protected static IndexSearcher m_s1
Field Value
Type |
Description |
IndexSearcher |
|
|
Improve this Doc
View Source
m_s2
Declaration
protected static IndexSearcher m_s2
Field Value
Type |
Description |
IndexSearcher |
|
|
Improve this Doc
View Source
m_stopword
Declaration
protected static string m_stopword
Field Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
AfterClass()
Declaration
public override void AfterClass()
Overrides
|
Improve this Doc
View Source
AssertSameSet(Query, Query)
Asserts that the documents returned by q1
are the same as of those returned by q2
.
Declaration
public virtual void AssertSameSet(Query q1, Query q2)
Parameters
Type |
Name |
Description |
Query |
q1 |
|
Query |
q2 |
|
|
Improve this Doc
View Source
AssertSubsetOf(Query, Query)
Asserts that the documents returned by q1
are a subset of those returned by q2
.
Declaration
public virtual void AssertSubsetOf(Query q1, Query q2)
Parameters
Type |
Name |
Description |
Query |
q1 |
|
Query |
q2 |
|
|
Improve this Doc
View Source
AssertSubsetOf(Query, Query, Filter)
Asserts that the documents returned by q1
are a subset of those returned by q2
.
Both queries will be filtered by filter
.
Declaration
protected virtual void AssertSubsetOf(Query q1, Query q2, Filter filter)
Parameters
Type |
Name |
Description |
Query |
q1 |
|
Query |
q2 |
|
Filter |
filter |
|
|
Improve this Doc
View Source
BeforeClass()
Declaration
public override void BeforeClass()
Overrides
|
Improve this Doc
View Source
RandomFilter()
Returns a random filter over the document set.
Declaration
protected virtual Filter RandomFilter()
Returns
|
Improve this Doc
View Source
RandomTerm()
Returns a term suitable for searching.
Terms are single characters in lowercase (a-z).
Declaration
protected virtual Term RandomTerm()
Returns