textacular/textacular — pull request #46 by sjaq (2014-04-15 12:42:18+00:00)
Title: Fallback to zero similarity when trying to match null values

PostgreSQL will return a NULL when it's calculating the similarity of a string with a NULL value so wrap the similarity calculation inside a coalesce to make it fall back to 0.0 similarity when comparing with NULL values.