Hi,
how can I index a document with this fields to an index?
..
"gitlab": {
"path": "/api/v4/jobs/request",
"method": "POST",
"params": [
{
"value": "[FILTERED]",
"key": "token"
},
{
"value": {
"features": {
"vault_secrets": "[FILTERED]",
"artifacts_exclude": null
},
"shell": "bash",
"executor": "docker",
"name": "gitlab-runner",
"version": "16.3.1",
"config": {
"gpus": ""
},
"platform": "linux",
"revision": "f5dfa4d1",
"architecture": "amd64"
},
"key": "info"
}
],
...
When I try to index a document with this part I get the error:
(status = 400): {
"type": "document_parsing_exception",
"reason": "[1:5992] failed to parse field [gitlab.params.value] of type [keyword] in document with id 'E7OZhosB5SWzhhQTYN73'. Preview of field's value: '...,
"caused_by": {
"type": "illegal_state_exception",
"reason": "Can't get text on a START_OBJECT at 1:5258"
}
}, dropping event!
I think the problem is the object structure that is sometimes under gitlab.params.value.
Any idea to solve this?