Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exact substring match > fuzzy match #40

Open
ccorcos opened this issue Jul 7, 2017 · 3 comments
Open

Exact substring match > fuzzy match #40

ccorcos opened this issue Jul 7, 2017 · 3 comments

Comments

@ccorcos
Copy link

ccorcos commented Jul 7, 2017

Similar to #15, I'm having an issue where "div" is an exact substring match but fuzzy matches are ranked above.

@ccorcos
Copy link
Author

ccorcos commented Jul 7, 2017

[
  {
    "string": "Add Google Drive",
    "score": 5,
    "index": 9,
    "original": {
      "name": "Add Google Drive",
    }
  },
  {
    "string": "Add Divider",
    "score": 5,
    "index": 13,
    "original": {
      "name": "Add Divider",
    }
  },
  {
    "string": "Add Invision",
    "score": 3,
    "index": 12,
    "original": {
      "name": "Add Invision",
    }
  }
]

@ccorcos
Copy link
Author

ccorcos commented Jul 7, 2017

oh interesting:

image

@xoorath
Copy link

xoorath commented Feb 14, 2019

yeah, I'm having trouble with this too.

I have an item that has my search term exactly 3-4 times, and another item that's has something close to my search term a few hundred times, and the exact match isn't preferred.

Edit: fuse.js seems to be dramatically better at this time. Search results with fuzzy took about 2 seconds, happens in a few milliseconds with better results using fuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants