documentcloud/visualsearch — pull request #44 by plaflamme (2012-02-25 03:39:55+00:00)
Title: Add an option to prevent matching the returned values in valueMatches

My server is returning only the subset of values that match the search term. Furthermore, I want the match to occur on more that just the begining of the work (matches anywhere). So I don't want the callback to filter the matches for me.

This change allows passing an 'preserveMatches' option to the valueMatches callback. It prevents the callback from filtering the matches.