与之对应的DSL语句 Insert 创建索引库 (没有建立映射) @Test public void createIndexTest() throws Exception { IndicesClient indicesObject = highLevelClient.indices(); CreateIndexRequest createIndexRequest = new CreateIndexRequest("hotel"); CreateIndexResponse createIndexResponse = indicesObject.create(createIndexRequest, RequestOptions.DEFAULT); log.info("\n索引库是否创建成功: {}", createIndexResponse.isAcknowledged()); log.info("\n响应结果: {}", createIndexResponse); } 创建索引库, 并创建映射 @Test public void createMappingTest() throws...