/lucene-relevance

Lucene/Solr implementations of good similarities: Ltc, BM25L, BM25PLUS

Primary LanguageJavaApache License 2.0Apache-2.0

Lucene-Relevance

Contains implementations of good similarities for Lucene/Solr.

  • BM25Similarity: additional BM25L and BM25PLUS models to improve long document scores.
  • RobertsonSimilarity: tf-idf with Robertson's tf formula (BM25).
  • LdpSimilarity: td-idf with TF = 1+ln(1+ln(tf)) and pivoted document length normalization.
  • LtcSimilarity: tf-idf with sublinear tf (ltc).