Simple implementation of elatisicsearch similarity.