Introducing ember-cli-lunr

Reading time ~1 minute

I was working on client side searching in an ember application. The requirements was very simple, consider the following array of strings,

"We aim to be simple to integrate with any modern Rails application",
"We need an application that can display the current state of the orders",
"The intent behind it was to keep setup as easy as possible"

and I search for the query "application", I should get the following as output.

"We aim to be simple to integrate with any modern Rails application",
"We need an application that can display the current state of the orders"

But, if I search for "current orders", I should get the following as output,

"We need an application that can display the current state of the orders"

So clearly, it was keyword based searching.

I ended up finding just the right library, lunr.js. I wanted it to work with my ember model’s very robustly. So I ended up creating a ember-addon for it and named it (according to the pseudo addon naming convention) as ember-cli-lunr.

Hope you all find this addon useful in your ambitious search applications. And please help me make this ember addon better by submitting PR, feature request, issues or just a thank you (your appreciation moves me forward).

How to change the hash_secret of Paperclip

Recently, In Paperclip (4.1.1) I had to change the hash_secret, which is used for the purpose of URI Obfuscation. But, the problem was th...… Continue reading

Constantizable, for constant tables

Published on April 05, 2015

Clear your messed up rails console

Published on August 30, 2013