Class CollationTestBase
Base test class for testing Unicode collation.
Inherited Members
Namespace: Lucene.Net.Analysis
Assembly: Lucene.Net.TestFramework.dll
Syntax
public abstract class CollationTestBase : LuceneTestCase
Fields
m_firstRangeBeginningOriginal
Base test class for testing Unicode collation.
Declaration
protected string m_firstRangeBeginningOriginal
Field Value
Type | Description |
---|---|
string |
m_firstRangeEndOriginal
Base test class for testing Unicode collation.
Declaration
protected string m_firstRangeEndOriginal
Field Value
Type | Description |
---|---|
string |
m_secondRangeBeginningOriginal
Base test class for testing Unicode collation.
Declaration
protected string m_secondRangeBeginningOriginal
Field Value
Type | Description |
---|---|
string |
m_secondRangeEndOriginal
Base test class for testing Unicode collation.
Declaration
protected string m_secondRangeEndOriginal
Field Value
Type | Description |
---|---|
string |
Methods
AssertThreadSafe(Analyzer)
Base test class for testing Unicode collation.
Declaration
public virtual void AssertThreadSafe(Analyzer analyzer)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | analyzer |
EncodeCollationKey(byte[])
Convenience method to perform the same function as CollationKeyFilter.
Declaration
[Obsolete("only for testing deprecated filters")]
protected virtual string EncodeCollationKey(byte[] keyBits)
Parameters
Type | Name | Description |
---|---|---|
byte[] | keyBits | the result from
|
Returns
Type | Description |
---|---|
string | The encoded collation key for the original string. |
TestCollationKeySort(Analyzer, Analyzer, Analyzer, Analyzer, string, string, string, string)
Test using various international locales with accented characters (which sort differently depending on locale).
Declaration
public virtual void TestCollationKeySort(Analyzer usAnalyzer, Analyzer franceAnalyzer, Analyzer swedenAnalyzer, Analyzer denmarkAnalyzer, string usResult, string frResult, string svResult, string dkResult)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | usAnalyzer | |
Analyzer | franceAnalyzer | |
Analyzer | swedenAnalyzer | |
Analyzer | denmarkAnalyzer | |
string | usResult | |
string | frResult | |
string | svResult | |
string | dkResult |
TestFarsiRangeFilterCollating(Analyzer, BytesRef, BytesRef, BytesRef, BytesRef)
Base test class for testing Unicode collation.
Declaration
public virtual void TestFarsiRangeFilterCollating(Analyzer analyzer, BytesRef firstBeg, BytesRef firstEnd, BytesRef secondBeg, BytesRef secondEnd)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | analyzer | |
BytesRef | firstBeg | |
BytesRef | firstEnd | |
BytesRef | secondBeg | |
BytesRef | secondEnd |
TestFarsiRangeQueryCollating(Analyzer, BytesRef, BytesRef, BytesRef, BytesRef)
Base test class for testing Unicode collation.
Declaration
public virtual void TestFarsiRangeQueryCollating(Analyzer analyzer, BytesRef firstBeg, BytesRef firstEnd, BytesRef secondBeg, BytesRef secondEnd)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | analyzer | |
BytesRef | firstBeg | |
BytesRef | firstEnd | |
BytesRef | secondBeg | |
BytesRef | secondEnd |
TestFarsiTermRangeQuery(Analyzer, BytesRef, BytesRef, BytesRef, BytesRef)
Base test class for testing Unicode collation.
Declaration
public virtual void TestFarsiTermRangeQuery(Analyzer analyzer, BytesRef firstBeg, BytesRef firstEnd, BytesRef secondBeg, BytesRef secondEnd)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | analyzer | |
BytesRef | firstBeg | |
BytesRef | firstEnd | |
BytesRef | secondBeg | |
BytesRef | secondEnd |