Senzing Node.js SDK
    Preparing search index...
    • Adds an attribute mapping to the configuration. Maps a named attribute to a feature, element, and class so that incoming records with this attribute are processed correctly by the Senzing engine.

      Parameters

      • configJson: string

        The current configuration as a JSON string.

      • options: AddAttributeOptions

        Attribute options including attribute, feature, element, and class.

      Returns string

      The updated configuration JSON string.

      import { addAttribute } from "@senzing/configtool";

      configJson = addAttribute(configJson, {
      attribute: "LOYALTY_NUMBER",
      feature: "OTHER_ID",
      element: "OTHER_ID_NUMBER",
      class: "OTHER",
      });