Hi, I'm using the following two java files for overriding the Default Similarity of ElasticSearch 0.90.3 but it's not working for me.
https://github.com/awnuxkjy/es-custom-similarity-provider/tree/master/src/main/java/org/elasticsearch/index/similarity I have complied the two java files and added the corresponding class files in my /lib/elasticsearc-0.90.3.jar file in the path org/elasticsearch/index/similarity. Now, I'm trying to use those files in my mapping like mentioned in:- curl -XPOST 'http://host:port/tweeter/' -d ' { "settings": { "similarity": { "index": { "type": "org.elasticsearch.index.similarity.CustomSimilarityProvider" }, "search": { "type": "org.elasticsearch.index.similarity.CustomSimilarityProvider" } } } }' But it's giving me following error:- {"error":"IndexCreationException[[acqindex] failed to create index]; nested: ElasticSearchIllegalArgumentException[SimilarityProvider [my_similarity] must have an associated type]; ","status":400} Can anyone please tell me how can I use these two files for overriding the default similarity ? Thanks -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/86099655-b887-42a8-92e4-92fa1f06ce48%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
