joshaven / string_score

JavaScript string ranking 0 for no match upto 1 for perfect... "String".score("str"); //=> 0.825
MIT License
840 stars 62 forks source link

I'd like to use this script on the server side #14

Closed icarreira closed 12 years ago

icarreira commented 13 years ago

This script is perfect for me to calculate the relevance of my search strings, but I need to use it on the server side...

Any ideas?

icarreira commented 13 years ago

Could we create an interface that exposes this functionality in a evaluable format in order to embed this on a Doc Oriented DB such as Couch or Mongo and perform relevance calculation on the server?

joshaven commented 13 years ago

There are various ports of this script and it should run in JavaScript in Node. I am not sure what your serverside need is but using a C, Ruby or Node version should allow you to run the script.