chengpohi / edql

Elasticsearch Query GUI Client
https://plugins.jetbrains.com/plugin/16364-elasticsearch-query--edql
Apache License 2.0
35 stars 1 forks source link

Not a JSON Object: "_all" #21

Closed lubino closed 1 year ago

lubino commented 1 year ago

After running simple query to get basic information about index: GET name_of_the_index

I receive error message about failed execution instead of the response: java.lang.IllegalStateException: Not a JSON Object: "_all" at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:91) at com.github.chengpohi.util.JsonUtil.mapProps(JsonUtil.java:48) full message: log.txt

The response to that query from other tool: response.json.txt

I don't know how to debug this plugin, but my suspicion is that extraordinary Opensearch response "copy_to": [ "_all" ] for almost each property. Is it because plugin doesn't support this copy_to (array of strings) format in properties configuration?

chengpohi commented 1 year ago

Got it, Thanks feedback, I will take a look at this issue.

chengpohi commented 1 year ago

Hi @lubino currently you can use the right side EDQL doc manager and Index module to manager your index, it's a pure json editor will not fail when visulization.

chengpohi commented 1 year ago

hi @lubino this issue is fixed in version v1.9.19 this issue is caused by copy_to field in mapping, copy_to field is array type, but I handle it as an object, so throw the type error.

Since Jetbrains still reviewing the new version, you can manually download, and reinstall plugin: v1.9.19

image