Class ReverseStringFilter
Reverse token string, for example "country" => "yrtnuoc".
If Lucene.Net.Analysis.Reverse.ReverseStringFilter.marker is supplied, then tokens will be also prepended by that character. For example, with a marker of \u0001, "country" => "\u0001yrtnuoc". This is useful when implementing efficient leading wildcards search.
You must specify the required LuceneVersion compatibility when creating ReverseStringFilter, or when using any of its static methods:
- As of 3.1, supplementary characters are handled correctly
Inherited Members
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Serializable]
public sealed class ReverseStringFilter : TokenFilter, IDisposable
Constructors
Name | Description |
---|---|
ReverseStringFilter(LuceneVersion, TokenStream) | Create a new ReverseStringFilter that reverses all tokens in the supplied TokenStream. The reversed tokens will not be marked. |
ReverseStringFilter(LuceneVersion, TokenStream, Char) | Create a new ReverseStringFilter that reverses and marks all tokens in the supplied TokenStream.
The reversed tokens will be prepended (marked) by the |
Fields
Name | Description |
---|---|
INFORMATION_SEPARATOR_MARKER | Example marker character: U+001F (INFORMATION SEPARATOR ONE) |
PUA_EC00_MARKER | Example marker character: U+EC00 (PRIVATE USE AREA: EC00) |
RTL_DIRECTION_MARKER | Example marker character: U+200F (RIGHT-TO-LEFT MARK) |
START_OF_HEADING_MARKER | Example marker character: U+0001 (START OF HEADING) |
Methods
Name | Description |
---|---|
IncrementToken() | |
Reverse(LuceneVersion, Char[]) | Reverses the given input buffer in-place |
Reverse(LuceneVersion, Char[], Int32) | Partially reverses the given input buffer in-place from offset 0 up to the given length. |
Reverse(LuceneVersion, Char[], Int32, Int32) | Partially reverses the given input buffer in-place from the given offset up to the given length. |
Reverse(LuceneVersion, String) | Reverses the given input string |