Show / Hide Table of Contents

    Class RandomSimilarityProvider

    Similarity implementation that randomizes Similarity implementations per-field.

    The choices are 'sticky', so the selected algorithm is always used for the same field.

    Inheritance
    System.Object
    RandomSimilarityProvider
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public class RandomSimilarityProvider : PerFieldSimilarityWrapper

    Constructors

    | Improve this Doc View Source

    RandomSimilarityProvider(Random)

    Declaration
    public RandomSimilarityProvider(Random random)
    Parameters
    Type Name Description
    Random random

    Methods

    | Improve this Doc View Source

    Coord(Int32, Int32)

    Declaration
    public override float Coord(int overlap, int maxOverlap)
    Parameters
    Type Name Description
    System.Int32 overlap
    System.Int32 maxOverlap
    Returns
    Type Description
    System.Single
    | Improve this Doc View Source

    Get(String)

    Declaration
    public override Similarity Get(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    Similarity
    | Improve this Doc View Source

    QueryNorm(Single)

    Declaration
    public override float QueryNorm(float sumOfSquaredWeights)
    Parameters
    Type Name Description
    System.Single sumOfSquaredWeights
    Returns
    Type Description
    System.Single
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)