krisk / Fuse

Lightweight fuzzy-search, in JavaScript
https://fusejs.io/
Apache License 2.0
17.77k stars 754 forks source link

Need help to configure the library and get the expected result #623

Closed ishanuda closed 2 years ago

ishanuda commented 2 years ago

Hi,

I have a case where to use this nice library for searching as a simple/ advanced search.

I have created an example sandbox for advanced search in order to get the idea of what is goin on here. Sandbox: https://codesandbox.io/s/falling-tree-80g9f?file=/src/index.js

The problem is in it gives the score as scientific number.

  1. How to get rid of the score from scientific number format?
  2. Would like to know whether the configuration is correct in the example including the keyword pattern?
  3. Need to search exact words with the given configurations/or if wring with the correct configuration including the keyword pattern
  4. Filter duplicate objects from the result (Some times the result objects are duplicated)
  5. Weight does not seems to work as expected. (Have know idea of how the weight is working so commented in fields creation)

I can modify the example and test if someone can guide me with example please.

Thank you very much.

github-actions[bot] commented 2 years ago

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