thybag/quick-spot — pull request #1 by thybag (2012-12-18 10:17:21+00:00)
Title: Feature/better results ordering

Significantly improve how search results are ordered to try and more accurately predict which best fits what the user is searching for.

Add method:
options.gen_score = function(result_obj, search_str)

Bug fixes:
Clean up other option names (searchon,clickhandler = search_on, click_handler) etc
Fix bug with string lowercasing + typos
Improve demo page (fix style bugs + make none responsive)

Scoring calculated on:
occurrences (+o (if search length is 2 or more))
start_of_word (+5)
in_key_value (+5)
match_key_value_start (+10)