Function setWeightInSimilarityConfiguration

  • Updates the weight value for a given attribute from a similarity configuration. Supports both direct attribute access and nested attribute paths using dot notation.

    Parameters

    • aSimilarityConfiguration: SimilarityConfiguration

      The SimilarityConfiguration object to search within

    • attributeName: string

      The name of the attribute or nested path (e.g., "attr" or "parent.child")

    • newWeight: number

      The new value for the weight attribute

    Returns boolean

    true, if the weight value has been updated, or false if the attribute is not found