Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it compatible with 7.* #5

Open
orangevinz opened this issue Nov 29, 2020 · 2 comments
Open

Make it compatible with 7.* #5

orangevinz opened this issue Nov 29, 2020 · 2 comments

Comments

@orangevinz
Copy link

orangevinz commented Nov 29, 2020

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
}
@joway
Copy link
Owner

joway commented Nov 30, 2020

#3 could you try the solution in this issue? @orangevinz

@orangevinz
Copy link
Author

orangevinz commented Nov 30, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants