Closed mbland closed 6 years ago
BTW, this PR only adds items to the search corpora; I've filed #172 to follow up with removing them when links are deleted.
The Code Climate coverage check is failing, but I think it's faulty. The "Details" link shows no details, and Coveralls shows a small increase in coverage. Ignore the failure.
I've decided to eliminate the target URL autocompletion, as I think that would get messy in a hurry and isn't as useful as a regular search.
I've also:
createLink
to resolve to the Error
resulting from a search index insertion failure, as the link will still have been successfully createdredis
npm client to identify it as client.impl
and clientImpl
I'm going to go ahead and merge to get things moving along, but feel free to comment, ask questions, or open a new issue if there are any concerns.
Part of #160, #161, #165, and #166. Implements the RedisClient operations necessary to support these search, autocomplete, and target collision features.
Uses the lexicographic completion approach described in: http://oldblog.antirez.com/post/autocomplete-with-redis.html
Note that we'll need a migration script to create the new search indexes for existing installations.