I have a mapping of directory numbers to product names:
35 cozy comforter 35 warm blanket 67 pillow
and you need a search in which erroneous mixed names are found, such as "warm cmfrter" .
We have code using edit-distance (difflib), but it probably won't scale for 18000 names.
I achieved something similar with Lucene, but since PyLucene only wraps Java, which will complicate deployment for end users.
SQLite usually does not contain full text or scoring.
Xapian bindings are similar to C ++ and have some learning curve.
Whoosh is not well documented yet, but includes offensive spell checking.
What else do you have?
python database full-text-search fuzzy-search
Tobias
source share