Class CollationTestBase
Base test class for testing Unicode collation.
Inheritance
System.Object
CollationTestBase
Assembly: Lucene.Net.TestFramework.dll
Syntax
public abstract class CollationTestBase : LuceneTestCase
Fields
|
Improve this Doc
View Source
m_firstRangeBeginningOriginal
Declaration
protected string m_firstRangeBeginningOriginal
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
m_firstRangeEndOriginal
Declaration
protected string m_firstRangeEndOriginal
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
m_secondRangeBeginningOriginal
Declaration
protected string m_secondRangeBeginningOriginal
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
m_secondRangeEndOriginal
Declaration
protected string m_secondRangeEndOriginal
Field Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
AssertThreadSafe(Analyzer)
Declaration
public virtual void AssertThreadSafe(Analyzer analyzer)
Parameters
Type |
Name |
Description |
Analyzer |
analyzer |
|
|
Improve this Doc
View Source
EncodeCollationKey(Byte[])
Convenience method to perform the same function as CollationKeyFilter.
Declaration
protected virtual string EncodeCollationKey(byte[] keyBits)
Parameters
Type |
Name |
Description |
System.Byte[] |
keyBits |
the result from
collator.GetCollationKey(original).ToByteArray()
|
Returns
Type |
Description |
System.String |
The encoded collation key for the original string.
|
|
Improve this Doc
View Source
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 |
|
System.String |
usResult |
|
System.String |
frResult |
|
System.String |
svResult |
|
System.String |
dkResult |
|
|
Improve this Doc
View Source
TestFarsiRangeFilterCollating(Analyzer, BytesRef, BytesRef, BytesRef, BytesRef)
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 |
|
|
Improve this Doc
View Source
TestFarsiRangeQueryCollating(Analyzer, BytesRef, BytesRef, BytesRef, BytesRef)
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 |
|
|
Improve this Doc
View Source
TestFarsiTermRangeQuery(Analyzer, BytesRef, BytesRef, BytesRef, BytesRef)
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 |
|