A custom SimilarityProvider example for Elasticsearch
Java
Latest commit 8abf3b1 May 30, 2012 @tlrx Update README

README.textile

A custom SimilarityProvider example for Elasticseach

This plugin contains a custom Similarity class that can be used in an index:

curl -XPOST 'http://host:port/tweeter/' -d '
{
  "settings": {
    "similarity": {
      "index": {
        "type": "org.elasticsearch.index.similarity.CustomSimilarityProvider"
      },
      "search": {
        "type": "org.elasticsearch.index.similarity.CustomSimilarityProvider"
      }
    }
  }
}'

Enjoy