Returns an object which, when sorted according to natural order,
will order the Term values in the correct order.
For example, if the Terms contained integer values, this method
would return . Note that this
might not always be the most efficient implementation - for this
particular example, a better implementation might be to make a
ScoreDocLookupComparator that uses an internal lookup table of int.
Namespace: Lucene.Net.SearchCopyC#
new Integer(termtext)
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public abstract IComparable GetComparable( string termtext ) |
Visual Basic |
---|
Public MustOverride Function GetComparable ( _ termtext As String _ ) As IComparable |
Visual C++ |
---|
public: virtual IComparable^ GetComparable( String^ termtext ) abstract |
Parameters
- termtext
- Type: System..::..String
The textual value of the term.
Return Value
An object representingCopyC#
termtext
CopyC#
termtext