curl -XPUT http://127.0.0.1:9200/qywx
curl -XPOST http://127.0.0.1:9200/qywx/resource/_mapping -d'
{
"properties": {
"content": {
"type": "text",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word"
}
}
}'
curl -XPOST http://127.0.0.1:9200/qywx/resource/5 -d'
{
"solutionId": 105,
"solutionMsg": null,
"solutionTitle": "核保",
"solutionRanking": null,
"solutionOperator": null,
"makedate": null,
"modifydate": 1587025053288,
"solutionTime": null,
"solutionClassify": null,
"solutionKeyword": null,
"solutionText": null
}
'
curl -XPOST http://127.0.0.1:9200/qywx/resource/4 -d'
{
"solutionId": 100,
"solutionMsg": "",
"solutionTitle": "投保单号已使用",
"solutionRanking": "1",
"solutionOperator": "按时",
"makedate": 1584689254955,
"modifydate": 1584687950500,
"solutionTime": 0,
"solutionClassify": "失败",
"solutionKeyword": "失败",
"solutionText": "投保单号已使用"
}
'
curl -XPOST http://127.0.0.1:9200/qywx/resource/3 -d'
{
"solutionId": 101,
"solutionMsg": "",
"solutionTitle": "Failed",
"solutionRanking": "1",
"solutionOperator": "按时",
"makedate": 1584689402804,
"modifydate": 1584687950500,
"solutionTime": 0,
"solutionClassify": "失败",
"solutionKeyword": "失败",
"solutionText": "Failed"
}
'
curl -XPOST http://127.0.0.1:9200/qywx/resource/2 -d'
{
"solutionId": 103,
"solutionMsg": "",
"solutionTitle": "核保失败",
"solutionRanking": "1",
"solutionOperator": "按时",
"makedate": 1584689555683,
"modifydate": 1584687950500,
"solutionTime": 0,
"solutionClassify": "失败",
"solutionKeyword": "失败",
"solutionText": "核保失败"
}
'
curl -XPOST http://127.0.0.1:9200/qywx/resource/1 -d'
{
"solutionId": 104,
"solutionMsg": "",
"solutionTitle": "(error99)产品未开售",
"solutionRanking": null,
"solutionOperator": "001",
"makedate": 1585098953831,
"modifydate": null,
"solutionTime": 0,
"solutionClassify": "所有银行",
"solutionKeyword": "限额,产品,未开售",
"solutionText": "当在银行填写完成投保单,核保时报“(error99)产品未开售”,则代表该产品额度已经售罄。"
}
'
curl -X GET "localhost:9200/qywx/solution/_search" -d'
{
"query" : {
"match" : {
"solutionTitle": "产"
}
}
}'
curl -XDELETE 'http://localhost:9200/qywx/resource/108'
curl http://127.0.0.1:9200/_cat/indices 查询所有索引库
curl -XDELETE 'http://localhost:9200/ybt' 删除索引库