目录
3. 同一curl命令在Cygwin和Kibala中执行curl命令的写法
5. 根据之前创建的管道往ElasticSearch里写数据
1. Kibana默认端口:5601
2. 启动Kibana:
双击Kibana的bin目录下的kibana.bat
3. 同一curl命令在Cygwin和Kibala中执行curl命令的写法
Cygwin
curl -X PUT "localhost:9200/_ingest/pipeline/attachment" -d '{
"description" : "Extract attachment information",
"processors":[
{
"attachment":{
"field":"data",
"indexed_chars" : -1,
"ignore_missing":true
}
},
{
"remove":{"field":"data"}
}]}'
Kibala
PUT /_ingest/pipeline/attachment
{
"description" : "Extract attachment information",
"processors":[
{
"attachment":{
"field":"data",
"indexed_chars" : -1,
"ignore_missing":true
}
},
{
"remove":{"field":"data"}
}]}
4. 建立自己的文本抽取管道pipeline
PUT /_ingest/pipeline/attachment
{
"description" : "Extract attachment information",
"processors":[
{
"attachment":{
"field":"data",
"indexed_chars" : -1,
"ignore_missing":true
}
},
{
"remove":{"field":"data"}
}]}
5. 根据之前创建的管道往ElasticSearch里写数据
PUT /pdftest/pdf/2?pipeline=attachment
{
"data":"QmFzZTY05Yqg5a+G6Kej5a+G"
}
注意:data即为要写入的数据,必须为base64编码。
6. 查询之前写入的数据
GET pdftest/_search