代码拉取完成,页面将自动刷新
{
"info": {
"_postman_id": "0138f85a-204b-43f8-a58d-1f022101a437",
"name": "elasticsearch",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "分词查询",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"query\": {\r\n \"match\": {\r\n \"name\": \"马思艺披萨\"\r\n }\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "http://10.123.236.106:9200/special_express_fee/_doc/_search"
},
"response": []
},
{
"name": "添加数据",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"taskStatus\": \"COMMIT\",\r\n \"sdfsdfsdfsdfs\":\"sdfsdfsdfsdfsdfs\",\r\n \"sdfsdfsdf\":4515151515151\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "http://10.123.236.106:9200/oa_special_express_fee/_doc/190"
},
"response": []
},
{
"name": "创建索引",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"settings\" : {\r\n \"number_of_shards\" : 3,\r\n \"number_of_replicas\" : 2\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "http://10.123.236.106:9200/test"
},
"response": []
},
{
"name": "查看所有索引",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://10.123.236.106:9200/_cat/indices?v",
"protocol": "http",
"host": [
"10",
"123",
"236",
"106"
],
"port": "9200",
"path": [
"_cat",
"indices"
],
"query": [
{
"key": "v",
"value": null
}
]
}
},
"response": []
},
{
"name": "索引一个文档到customer索引中",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"name\": \"John Doe\",\r\n \"age\": \"John Doe\",\r\n \"date3\": \"2022/02/15 12:43:54\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "http://10.123.236.106:9200/special_express_fee/_doc/100"
},
"response": []
},
{
"name": "从索引中获取指定id的文档",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://10.123.236.106:9200/oa_special_express_fee/_doc/190",
"protocol": "http",
"host": [
"10",
"123",
"236",
"106"
],
"port": "9200",
"path": [
"oa_special_express_fee",
"_doc",
"190"
],
"query": [
{
"key": "pretty",
"value": null,
"disabled": true
}
]
}
},
"response": []
},
{
"name": "Get Index 查看索引的定义信息",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://10.123.236.106:9200/asc_xxhxqsqd",
"protocol": "http",
"host": [
"10",
"123",
"236",
"106"
],
"port": "9200",
"path": [
"asc_xxhxqsqd"
],
"query": [
{
"key": "pretty",
"value": null,
"disabled": true
}
]
}
},
"response": []
},
{
"name": "是否有索引",
"request": {
"method": "HEAD",
"header": [],
"url": {
"raw": "http://10.123.236.106:9200/special_express_fee",
"protocol": "http",
"host": [
"10",
"123",
"236",
"106"
],
"port": "9200",
"path": [
"special_express_fee"
],
"query": [
{
"key": "pretty",
"value": null,
"disabled": true
}
]
}
},
"response": []
},
{
"name": "创建别名",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"aliases\": {\r\n \"masiyi666\": {}\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "http://10.123.236.106:9200/masiyi/"
},
"response": []
},
{
"name": "别名查询",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"size\": 10,\r\n \"query\": {\r\n \"match\": {\r\n \"CreateName\": \"马艺\"\r\n }\r\n },\r\n \"from\": 0\r\n\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "http://10.123.236.106:9200/eip-mapp-oa-server"
},
"response": []
},
{
"name": "查询别名状态",
"request": {
"method": "GET",
"header": [],
"url": "http://10.123.236.106:9200/_alias/eip-mapp-oa-server"
},
"response": []
},
{
"name": "别名查询",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"query\": {\r\n \"match\": {\r\n \"type\": \"顺丰\"\r\n }\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "http://10.123.236.106:9200/special_express_fee_all/_search"
},
"response": []
},
{
"name": "修改数据",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"doc\": {\r\n \"elasticData\": \"{\\\"department_code\\\":\\\"270102\\\",\\\"reason\\\":\\\"1\\\",\\\"ModifyName\\\":\\\"马思艺\\\",\\\"project\\\":\\\"是\\\",\\\"type\\\":\\\"顺丰\\\",\\\"TenantID\\\":2288,\\\"__TASK_COMMIT_RESULT\\\":{\\\"msg\\\":\\\"操作成功\\\",\\\"code\\\":\\\"0000\\\",\\\"data\\\":{\\\"taskId\\\":\\\"1650144\\\",\\\"taskKey\\\":\\\"bmzg\\\",\\\"commitUser\\\":\\\"14096\\\",\\\"commitUserName\\\":\\\"马思艺\\\",\\\"isFinish\\\":true,\\\"isSuccess\\\":false,\\\"lastUserComment\\\":\\\"我师傅\\\",\\\"lastUserResult\\\":\\\"REJECT\\\"},\\\"success\\\":true,\\\"zipFlag\\\":false},\\\"company\\\":\\\"利元亨\\\",\\\"ID\\\":97,\\\"ModifyID\\\":215104,\\\"process\\\":\\\"寄件\\\",\\\"receiver\\\":\\\"1\\\",\\\"department_name\\\":\\\"办公产品组\\\",\\\"CreateTime\\\":\\\"2022-02-18 10:57:52\\\",\\\"employee_name\\\":\\\"马思艺\\\",\\\"apply_time\\\":\\\"2022-02-18 10:57:42\\\",\\\"project_code\\\":\\\"1\\\",\\\"CreateID\\\":215104,\\\"CreateName\\\":\\\"马思艺\\\",\\\"sender\\\":\\\"1\\\",\\\"special_fee_type\\\":\\\"木架费\\\",\\\"proof_basis\\\":\\\"1\\\",\\\"employee_number\\\":\\\"14096\\\",\\\"track_number\\\":\\\"1\\\"}\",\r\n \"assigneeName\": \"马思艺\",\r\n \"nowTaskName\": \"对账人\",\r\n \"handledUser\": \"14096,14096\",\r\n \"assignee\": \"14096\",\r\n \"taskStatus\": \"REJECT\"\r\n , \"taskEndTime\": \"2022/02/18 10:57:59\"\r\n }\r\n\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "http://10.123.236.106:9200/oa_special_express_fee/_doc/134/_update"
},
"response": []
},
{
"name": "模糊分词查询",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"size\": 100,\r\n \"query\": {\r\n \"bool\": {\r\n \"must\": [\r\n {\r\n \"wildcard\": {\r\n \"spr\": \"*14096*\"\r\n }\r\n },\r\n {\r\n \"match\": {\r\n \"department_code\": \"270102\"\r\n }\r\n },\r\n {\r\n \"match\": {\r\n \"company\": \"利亨\"\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n \"from\": 0,\r\n \"_source\": {\r\n \"excludes\": \"elasticData\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "http://10.123.236.106:9200/fl_emergency_purchase/_doc/_search"
},
"response": []
},
{
"name": "联合查询",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"size\": 10,\r\n \"query\": {\r\n \"bool\": {\r\n \"must\": [\r\n {\r\n \"match\": {\r\n \"taskStartUser\": \"16957\"\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n \"from\": 4,\r\n \"_source\": {\r\n \"excludes\": \"elasticData\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "http://10.123.236.106:9200/eip-mapp-oa-server/_doc/_search"
},
"response": []
},
{
"name": "查询索引下所有数据",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"size\": 15,\r\n \"query\": {\r\n \"bool\": {\r\n \"must\": [\r\n {\r\n \"match\": {\r\n \"taskStartUser\": \"14096\"\r\n }\r\n },\r\n {\r\n \"range\": {\r\n \"taskCreateTime\": {\r\n \"from\": \"2022-02-18 00:00:00\",\r\n \"to\": \"2022-03-15 00:00:00\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n \"from\": 0,\r\n \"_source\": {\r\n \"excludes\": \"elasticData\"\r\n },\r\n \"sort\": {\r\n \"taskCreateTime\": {\r\n \"order\": \"desc\"\r\n }\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "http://10.123.236.106:9200/eip-mapp-oa-server/_doc/_search"
},
"response": []
},
{
"name": "删除所有信息(慎用!!!)",
"request": {
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"size\": 10,\r\n \"query\": {\r\n \"bool\": {\r\n \"must\": [\r\n {\r\n \"match\": {\r\n \"elasticData\": \"马思艺\"\r\n }\r\n },\r\n {\r\n \"match\": {\r\n \"assignee\": \"14096\"\r\n }\r\n },\r\n {\r\n \"match\": {\r\n \"taskStatus\": \"APPROVAL\"\r\n }\r\n },\r\n {\r\n \"range\": {\r\n \"taskEndTime\": {\r\n \"from\": \"1990-10-10\",\r\n \"to\": \"2024-05-01\"\r\n }\r\n }\r\n },\r\n {\r\n \"range\": {\r\n \"taskCreateTime\": {\r\n \"from\": \"1999-10-10\",\r\n \"to\": \"2024-05-01\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n \"from\": 0,\r\n \"_source\": {\r\n \"excludes\": \"elasticData\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "http://10.123.236.106:9200/*"
},
"response": []
},
{
"name": "添加别名",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"actions\": [\r\n {\r\n \"add\": {\r\n \"index\": \"special_express_fee\",\r\n \"alias\": \"special_express_fee_all\"\r\n }\r\n }\r\n ]\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "http://10.123.236.106:9200/_aliases"
},
"response": []
},
{
"name": "创建时间倒序",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \t\"sort\":{\r\n\t\t\"date3\":{\r\n\t\t\t\"order\":\"desc\"\r\n\t\t}\r\n\t}\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://10.123.236.106:9200/special_express_fee/_doc/_search",
"protocol": "http",
"host": [
"10",
"123",
"236",
"106"
],
"port": "9200",
"path": [
"special_express_fee",
"_doc",
"_search"
],
"query": [
{
"key": "pretty",
"value": null,
"disabled": true
}
]
}
},
"response": []
}
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。