14.4.1.3. 附件索引
curl -X PUT "localhost:9200/_ingest/pipeline/attachment" -H 'Content-Type: application/json' -d'
{
"description" : "Extract attachment information",
"processors" : [
{
"attachment" : {
"field" : "data",
"indexed_chars" : -1
}
}
]
}
'
curl -X PUT "localhost:9200/my_index/mydoc/2?pipeline=attachment" -H 'Content-Type: application/json' -d'
{
"data":" '`base64 -i in.pdf`' "
}
'