Skip to content

Add support for non-ASCII search #133

@maxcorbeau

Description

@maxcorbeau

Hi all,

Currently, Fuse doesn't support searching through non-ASCII characters. For instance searching with stro on strömberg only matches str. This could be changed by

  • transliterating input to ASCII (e.g. stro -> stro)
  • transliterating all strings within an item to ASCII when evaluating that item (e.g. strömberg -> stromberg)
  • performing the match on the transliterated item (e.g. match [0,3])
  • returning original version item + matches (e.g. strömberg + match [0,3])

This code seems to have a pretty complete transliteration table (see char_map object):
https://github.com/pid/speakingurl/blob/master/lib/speakingurl.js

Not that I have a need for it at the moment, just bringing it up as a suggestion :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions