(Redacted for improved clarity, please see next post on this thread)
I got the error: field [data] not present as part of path [data] when I attempt to ingest an attachment encoded in CBOR.
I have a text file (alpha.txt) with the content "The quick brown fox jumps over a lazy dog" (no quotes). Encoded in CBOR I obtain
x)The quick brown fox jumps over a lazy dog
Console CURL commands, are as follows,
Create the index
PUT "localhost:9200/abcd1234?pretty" -H 'Content-Type: application/json' -d'
{
"settings": {
"index": {
"number_of_shards": 1,
"number_of_replicas": 0
}
}
}'
Create the CBOR attachment ingest pipeline
curl -X PUT "localhost:9200/_ingest/pipeline/cbor-attachment?pretty" -H 'Content-Type: application/json' -d'
{
"description" : "Extract attachment information encoded in CBOR",
"processors" : [
{
"attachment": {
"description" : "Ingest attachment",
"field": "data",
"indexed_chars": -1
}
},
{
"set" : {
"description" : "Add last updated time",
"field": "last_update_time",
"value": "{{_ingest.timestamp}}"
}
}
]
}'
Ingest the text document
PUT "localhost:9200/abcd1234/_doc/alpha?pipeline=cbor-attachment" -H 'Content-Type: application/cbor' -d'
{
"data": "x)The quick brown fox jumps over a lazy dog"
}'
Hi all. I’m new on this forum and I have searched docs but I can’t find help on this error anywhere. Any hints at all?
What do I need to do to make my question more clear?
English is not my first language, I apologize if that’s why nobody is replying.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.