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.
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:-
{"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 ?
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.
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:-
{"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 ?
I am assuming that you packaged the two Java files into a jar file and
deploy it to the $ES_PATH lib directory. Elasticsearch will pick up any jar
files in that directory.
Similarities are either set to be the default for all the indices via the
index.similarity.default.type configuration parameter [1] or it must be
associated directly with a field [2]. Use the example from the website,
your mapping would look something like:
As stated in the other thread, I believe the example provided in the plugin
is misleading since there is no individual index/search similarity. The
example creates two similarities types, "index" and "search", which use the
same similarity type.
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.
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:-
{"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 ?
On Thu, Jan 16, 2014 at 11:22 PM, Ivan Brusic ivan@brusic.com wrote:
I am assuming that you packaged the two Java files into a jar file and
deploy it to the $ES_PATH lib directory. Elasticsearch will pick up any jar
files in that directory.
Similarities are either set to be the default for all the indices via the
index.similarity.default.type configuration parameter [1] or it must be
associated directly with a field [2]. Use the example from the website,
your mapping would look something like:
As stated in the other thread, I believe the example provided in the
plugin is misleading since there is no individual index/search similarity.
The example creates two similarities types, "index" and "search", which use
the same similarity type.
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.
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:-
{"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 ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.