Adding custom configuration to Measurement Matchmaker

The Natural Language Processing feature enables you to use units of measure. This feature is available to both the query service, for analyzing the search query string, and NiFi for analysing the attributes of products. Units of measure are updated and deleted using the PATCH request method. To delete a unit of measure, pass an empty value as the key. At present the operations supported with units of measure are update, delete, and retrieve. The add operation is currently not supported. New records are added using the POST request method. The existing records are updated (add, update, delete record) using the PATCH request method.

Note: No units of measure are available for the Finnish or Swedish language in the default configuration. You can add units of measure for these languages using the configuration endpoint.

Endpoint

Here is the endpoint for this service:
http://localhost:3737/search/resources/api/v2/configuration?nodeName=uoms&envType=auth&locale=en_US

Example

Sample uoms.json for units of measure:
{
    "milliseconds": "millisecond",
    "yard": "yard",
    "centimeters": "centimeter",
    "year": "year",
    "hr": "hour",
    "yd": "yard",
    "years": "year",
    "millimeter": "millimeter",
    "milliliter": "milliliter",
    "inches": "inch",
    "seconds": "second",
    "foots": "foot",
    "nanometer": "nanometer",
    "gallons": "gallon",
    "pounds": "pound",
    "yr": "year",
    "grams": "gram",
    "kilogram": "kilogram",
    "\"": "inch",
    "nanosecond": "nanosecond",
    "in": "inch",
    "mile": "mile",
    "liters": "liter",
    "'": "foot",
    "litre": "liter",
    "μg": "microgram",
    "μm": "micrometer",
    "microsecond": "microsecond",
    "μs": "microsecond",
    "centimetre": "centimeter",
    "micrometre": "micrometer",
    "weeks": "week",
    "microgram": "microgram",
    "millisecond": "millisecond",
    "milligram": "milligram",
    "sec": "second",
    "min": "minute",
    "kilograms": "kilogram",
    "microseconds": "microsecond",
    "kg": "kilogram",
    "foot": "foot",
    "st": "stone",
    "km": "kilometer",
    "d": "day",
    "gram": "gram",
    "milliliters": "milliliter",
    "cm": "centimeter",
    "l": "liter",
    "m": "meter",
    "s": "second",
    "t": "tonne",
    "gallon": "gallon",
    "lb": "pound",
    "kilometer": "kilometer",
    "days": "day",
    "y": "year",
    "stones": "stone",
    "yrs": "year",
    "inch": "inch",
    "micrograms": "microgram",
    "millimeters": "millimeter",
    "second": "second",
    "mg": "milligram",
    "millilitre": "milliliter",
    "nanometre": "nanometer",
    "mi": "mile",
    "day": "day",
    "ml": "milliliter",
    "mm": "millimeter",
    "mo": "month",
    "millilitres": "milliliter",
    "months": "month",
    "meter": "meter",
    "minutes": "minute",
    "ms": "millisecond",
    "liter": "liter",
    "hrs": "hour",
    "yards": "yard",
    "millimetre": "millimeter",
    "month": "month",
    "lbs": "pound",
    "centimeter": "centimeter",
    "nm": "nanometer",
    "millimetres": "millimeter",
    "week": "week",
    "ns": "nanosecond",
    "yds": "yard",
    "milligrams": "milligram",
    "micrometer": "micrometer",
    "ft": "foot",
    "meters": "meter",
    "miles": "mile",
    "pound": "pound",
    "gal": "gallon",
    "wk": "week",
    "hour": "hour",
    "nanoseconds": "nanosecond",
    "tonne": "tonne",
    "litres": "liter",
    "hours": "hour",
    "gm": "gram",
    "ltr": "liter",
    "oz": "ounce",
    "minute": "minute",
    "stone": "stone",
    "kilometers": "kilometer",
    "ounce": "ounce"
}