forrestthewoods / lib_fts

single-file public domain libraries
666 stars 136 forks source link

Using fts_fuzzy_match concept for searching through multiple documents #21

Open kcindric opened 4 years ago

kcindric commented 4 years ago

Hi @forrestthewoods, great work on the fuzzy match, I'm having a lot of fun with it! This is a question and not an issue but I'm putting it here for future reference.

I'm a junior dev and I thinking about this idea for some time about using your algorithm for searching through multiple txt files for a particular word and then ranking them based on final score. I still don't know how to define the final score and where to start my quest. Also, is this algorithm the best approach for my case or should I consider something else?

Thank you!

bubnikv commented 4 years ago

You may run the fts_fuzzy_match over multiple files and sort the results based on the match quality. There is no need to extend fts_fuzzy_match in that regard.