This gem has been clutch for making Quepid a success #347
epugh
started this conversation in
Show and tell
Replies: 1 comment
-
Awesome Eric, thanks for sharing! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to share how valuable mini_racer has been! I steward Quepid, an open source tool for measuring search quality. Back in the mid oughts when we first built it, the idea was that you would query a search engine using Javascript in the browser. We load dynamic Javascript based "Scorers" to evaluate the code. Later, when we started integrating with different Search API's we did it by letting you write a little bit of Javascript to convert search results from your search API into the JSON format that Quepid expects.
Fast forward a number of years and instead of doing this processing in the client, we want to do it in the server... Let's us scale up to many thousands of queries, lets us do nightly evaluation of search quality without requiring a human to log into Quepid and do it manually.
I tried a number of ways, and the only way to preserve the Javascript based Scorers and mapper code was via Mini Racer! It's been awesome. My users can write their Javascript, evaluate it in their client based search interactions, and then have the Quepid server reuse the same code in the nightly use case. Amazing!
Here is example of pairing of some Javascript logic, with the Ruby Scorer:
Beta Was this translation helpful? Give feedback.
All reactions