class SimpleFeatureVectorSimilarity implements Similarity {

  @Override
  public double computeScore(Collection<TermId> query, Collection<TermId> target) {
    return Sets.intersection(Sets.newHashSet(query), Sets.newHashSet(target)).size();
  }

}