jim/carmen — pull request #111 by erikogan (2012-11-17 16:12:28+00:00)
Title: Implement Unicode-safe case-folding for case-insensitive searching

As well as the :fuzzy option for Querying::named, which looks redundant to me since one is able to search via Regexp.

--
Arguably :fuzzy should be a separate pull request, but I saw it in the comments and implemented it before I saw your response to my issue.

Right now :fuzzy is a simple substring search. For a true “fuzzy” match, it should be something more like a Levenshtein distance weighted search. But I think you’re right that people just want it for type-ahead/autocomplete, and for that a substring is probably fine.

I can also take :fuzzy out and reimplement it as a separate method, if you’d prefer. Given that it’s off by default I don’t have a strong feeling about whether it should be its own method. Though I suppose the search method could be substring by default and fuzzy optionally, if someone wanted a Levenshtein distance algorithm (and felt like implementing it).