Closed FrancoTanzarellaEviivo closed 2 years ago
My simplified object looks like this
[ { "id": 1234, "name": "Property one", "types": [ { "id": 1, "name": { "text": "type 1" }, "rooms": [ { "id": 1, "name": { "text": "Blue room" } }, { "id": 2, "name": { "text": "Red room" } }, ] }, { "id": 2, "name": { "text": "type 4" }, "rooms": [ { "id": 3, "name": { "text": "Green room" } }, { "id": 4, "name": { "text": "Yellow room" } }, ] }, ], }, ]
Fuse:
let roomSearch = new Fuse(properties ?? [], { findAllMatches: true, threshold: 0.3, isCaseSensitive: false, minMatchCharLength: 2, keys: ['name', 'types.name.text', 'types.rooms.name.text'], });
I can find name in the main array but can't find the other keys.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
I still have this issue.
My simplified object looks like this
Fuse:
I can find name in the main array but can't find the other keys.