A custom SimilarityProvider example for Elasticsearch
Java
Pull request Compare This branch is 1 commit ahead of tlrx:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main/java/org/elasticsearch/index/similarity
.gitignore
README.textile
pom.xml

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