Implement doc product similarity