defaultFuseOptions: {
    threshold: number;
    distance: number;
    includeScore: boolean;
    minMatchCharLength: number;
    ignoreLocation: boolean;
} = ...

Default Fuse.js options for consistent fuzzy search behavior across components. Tuned for balanced fuzzy matching with reasonable performance.

Type declaration

  • threshold: number
  • distance: number
  • includeScore: boolean
  • minMatchCharLength: number
  • ignoreLocation: boolean
export const defaultFuseOptions = {
threshold: 0.3, // Balance between fuzzy and strict matching
distance: 100, // Allow some character distance
includeScore: true,
minMatchCharLength: 2, // Require minimum 2 characters before matching
ignoreLocation: true, // Search anywhere in the string, not just start
};