From 4f051578a2b63b09a688d65cc18ce9c15ebf74ad Mon Sep 17 00:00:00 2001 From: Jakub Jankiewicz Date: Tue, 9 Jan 2024 16:40:52 +0100 Subject: [PATCH] better fuse option for React reference app --- app.js | 1 + app.jsx | 1 + 2 files changed, 2 insertions(+) diff --git a/app.js b/app.js index 1b3533855..c5fc1df20 100644 --- a/app.js +++ b/app.js @@ -18,6 +18,7 @@ var _React = React, var fuse_options = { includeScore: true, threshold: 0.1, + ignoreLocation: true, keys: ['doc', { name: 'name', weight: 2 diff --git a/app.jsx b/app.jsx index 7e6b6359f..2b3e0308d 100644 --- a/app.jsx +++ b/app.jsx @@ -3,6 +3,7 @@ const { useRef, useState, useEffect, useMemo } = React; const fuse_options = { includeScore: true, threshold: 0.1, + ignoreLocation: true, keys: [ 'doc', {