Search similar

https://github.com/priorknowledge/loom/blob/master/loom/util.py#L157