Skip to main content
Module

x/fuse/src/core/errorMessages.js

Lightweight fuzzy-search, in JavaScript
Latest
File
export const EXTENDED_SEARCH_UNAVAILABLE = 'Extended search is not available'
export const LOGICAL_SEARCH_UNAVAILABLE = 'Logical search is not available'
export const INCORRECT_INDEX_TYPE = "Incorrect 'index' type"
export const LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY = (key) => `Invalid value for key ${key}`
export const PATTERN_LENGTH_TOO_LARGE = (max) => `Pattern length exceeds max of ${max}.`
export const MISSING_KEY_PROPERTY = (name) => `Missing ${name} property in key`
export const INVALID_KEY_WEIGHT_VALUE = (key) => `Property 'weight' in key '${key}' must be a positive integer`