I solved the error problem but still ElasticSearch is using its Default 
Similariy. Can anyone tell me why is it not taking these new 
CustomSimilarity files into consideration.
On Thursday, 16 January 2014 16:54:02 UTC+5:30, coder wrote:
>
> 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/e082c7b9-9c7d-4b67-94e5-7194fcf2b114%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to