PUT platform_drug_index_mapping properties drugNameText3 type text fields keyword typekeyword ignore_above 10000 转为java
PutMappingRequest putMappingRequest = new PutMappingRequest("platform_drug_index"); putMappingRequest.source("{\n" + " "properties": {\n" + " "drugNameText3":{\n" + " "type": "text",\n" + " "fields":{\n" + " "keyword":{\n" + " "type":"keyword",\n" + " "ignore_above": 10000\n" + " }\n" + " }\n" + " }\n" + " }\n" + "}"); client.indices().putMapping(putMappingRequest, RequestOptions.DEFAULT)
原文地址: https://www.cveoy.top/t/topic/ivGp 著作权归作者所有。请勿转载和采集!