elasticsearch-hamming-plugin icon indicating copy to clipboard operation
elasticsearch-hamming-plugin copied to clipboard

Make it compatible with 7.*

Open orangevinz opened this issue 4 years ago • 2 comments
trafficstars

I updated the plugin-descriptor.properties to make it run under 7.9.1 wich is my ES version. The plugin is activated as I can see in GET /_cat/plugins But I have this error but I can't figure what to put instead native I've tried java, expert_scripts

{
	"error": {
		"root_cause": [{
			"type": "query_shard_exception",
			"reason": "script_score: the script could not be loaded",
			"index_uuid": "c41fIsj4SmmntRL_lRUgsQ",
			"index": "my_index_v1"
		}],
		"type": "search_phase_execution_exception",
		"reason": "all shards failed",
		"phase": "query",
		"grouped": true,
		"failed_shards": [{
			"shard": 0,
			"index": "my_index_v1",
			"node": "CR5nJVMSTh-0W-evwO3vug",
			"reason": {
				"type": "query_shard_exception",
				"reason": "script_score: the script could not be loaded",
				"index_uuid": "c41fIsj4SmmntRL_lRUgsQ",
				"index": "my_index_v1",
				"caused_by": {
					"type": "illegal_argument_exception",
					"reason": "script_lang not supported [native]"
				}
			}
		}]
	},
	"status": 400
}

orangevinz avatar Nov 29 '20 17:11 orangevinz

https://github.com/joway/elasticsearch-hamming-plugin/issues/3 could you try the solution in this issue? @orangevinz

joway avatar Nov 30 '20 02:11 joway

I've done what @wyster said but for me it only allows to install the plugin not to make it run. I got this error script_lang not supported [native]

More details if it helps: Apparently It's not allowed anymore to set script.inline: true and script.store: true in the elasticsearch.yml conf file. Error: unknown setting [script.inline] please check that any required plugins are installed, or check the breaking changes documentation for removed settings

Maybe the syntax has changed, but I do know nothing in Java, even if I tried. https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting-engine.html

orangevinz avatar Nov 30 '20 07:11 orangevinz