Skip to content
Discussion options

You must be logged in to vote

Late reply, sorry.

The include-match operator (') does exact substring matching, so 'ABCD F looks for the literal substring "ABCD F" in the field values. Combined with threshold: 0 (perfect match only), this is very strict.

A few things to check:

  1. Make sure the data actually contains "ABCD FINANCE LIMITED" as-is (no extra whitespace, non-breaking spaces, etc.).
  2. If you want each word matched independently, you can split the input and join with spaces — in extended search, space-separated terms are treated as AND: 'ABCD 'FINANCE will match items containing both substrings.

Something like:

const query = value.split(/\s+/).map(term => "'" + term).join(" ")
this.items = fuse.search(query).map(e…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by krisk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants