Releases: krisk/Fuse
Releases · krisk/Fuse
v6.4.3
v6.4.2
v6.4.1
v6.4.0
v6.3.1
v6.3.0
Features
-
provide alternative array notation for nested paths (7077fbe), closes #432
const options = { // equivalent to `keys: [['author', 'firstName'], ['author', 'lastName']]` keys: ['author.firstName', 'author.lastName'] }
And with logical query expressions, the following are equivalent:
// Example 1 { $and: [{ 'author.firstName': 'jon' }, { 'author.firstName': 'scazi' }] } // Example 2 { $and: [ { $path: ['author', 'firstNname'], $val: 'jon' }, { $path: ['author', 'lastName'], $val: 'scazi' } ] }
v6.2.1
More control over fuzzy searching behavior
Features
- Added
ignoreLocation
, option to ignore field-length norm (#440). When set to true, the calculation for the relevance score (used for sorting) will ignore the field-length norm. - Added
ignoreLocation
option, which ignore the location (#438). When set to true, the searching will produce the same score result irrespective of where in the doc the match was found. - Added
remove
function (#439), which removes all documents from the list for which the predicate returns truthy, and returns an array of the removed docs.
Bug fixes
- Fixed #442, where
minMatchCharLength
is ignored when determining which records to exclude.
Minor enhancements
- Added #446, standardizing how keys are passed to
Fuse.createIndex
.