Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Namespace Lucene.Net.Analysis.Reverse

    Filter to reverse token text.

    Classes

    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 Lucene.Net.Util.LuceneVersion compatibility when creating ReverseStringFilter, or when using any of its static methods:

    • As of 3.1, supplementary characters are handled correctly

    ReverseStringFilterFactory

    Factory for ReverseStringFilter.

    <fieldType name="text_rvsstr" class="solr.TextField" positionIncrementGap="100">
      <analyzer>
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
        <filter class="solr.ReverseStringFilterFactory"/>
      </analyzer>
    </fieldType>

    @since solr 1.4

    • Improve this Doc
    Back to top Copyright © 2020 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.