Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Interface IStringDistance

    Interface for string distances.

    Namespace: Lucene.Net.Search.Spell
    Assembly: Lucene.Net.Suggest.dll
    Syntax
    public interface IStringDistance

    Methods

    | Improve this Doc View Source

    GetDistance(String, String)

    Returns a float between 0 and 1 based on how similar the specified strings are to one another.
    Returning a value of 1 means the specified strings are identical and 0 means the string are maximally different.

    Declaration
    float GetDistance(string s1, string s2)
    Parameters
    Type Name Description
    System.String s1

    The first string.

    System.String s2

    The second string.

    Returns
    Type Description
    System.Single

    a float between 0 and 1 based on how similar the specified strings are to one another.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 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.