August 4, 2022, 10:50pm
When you use 8.x Java Client to create an index within
CreateIndexRequest.Builder and specify
settings builder, there is no field
type, which Elasticsearch server waits for and it returns an error, pointing that a
type must be specified.
This behaviour begins from 8.0.1 version of client.
What is the best way using Java API to override this behaviour?
PS: Elasticsearch server ver 8.0.0
August 4, 2022, 11:11pm
I'm not sure but first, I'd upgrade to the latest version of the client and the server.
Then, if the problem is still there, I'd try to use this:
August 5, 2022, 9:47am
Had upated today. Both client and server are of 8.3.3 ver. The code
.settings(s -> s
runs into error:
[es/indices.create] failed: [illegal_argument_exception] Similarity [lmj] must have an associated type
Will try now to use the sencod approach you suggested.
August 5, 2022, 10:42am
Well, seems that second approach doenst help much, even by setting
The rest of it is to create a bug issue on github. But I'm a bit confused that nobody yet faced this common error.
August 5, 2022, 11:21am
Might be a bug indeed. May be open an issue?
August 5, 2022, 10:23pm
Well I guess its a last hope. An issue is here:
August 16, 2022, 11:42pm
Well, no answers or replies anywhere...
September 13, 2022, 11:43pm
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.