Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 464 Bytes

File metadata and controls

22 lines (18 loc) · 464 Bytes

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