We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20668ec commit 203871fCopy full SHA for 203871f
test/indexing.test.js
@@ -65,11 +65,11 @@ describe('Searching', () => {
65
includeScore: true,
66
threshold: 0.3,
67
keys: [
68
- { name: 'title', getFn: (book) => book.title },
+ { name: 'bookTitle', getFn: (book) => book.title },
69
{ name: 'authorName', getFn: (book) => book.author.firstName }
70
]
71
})
72
- const result = fuse.search({ title: 'old man' })
+ const result = fuse.search({ bookTitle: 'old man' })
73
expect(result.length).toBe(1)
74
expect(idx(result)).toMatchObject([0])
75
0 commit comments