-1

For example I want "wolrd" to return documents with "world" .

You Ma
  • 189
  • 1
  • 12

1 Answers1

2

You might look at using an external library that has that functionality, Fuse.js is one that looks like it does what you want, as long as you can turn everything you want to search into an array and search through that.

You could also use a spell-checking library to catch the mis-spelling before you do the search.

Kris
  • 3,091
  • 20
  • 28