mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-08 18:36:51 +08:00
ES创建索引问题
This commit is contained in:
@@ -126,6 +126,7 @@ public class CourseElasticsearchImpl implements ICourseFullTextSearch{
|
||||
builder.endObject();
|
||||
|
||||
CreateIndexRequest createIndexRequest = new CreateIndexRequest(name);
|
||||
createIndexRequest.settings(settingBuilder);
|
||||
createIndexRequest.mapping(builder);
|
||||
CreateIndexResponse createIndexResponse = restHighLevelClient.indices().create(createIndexRequest, RequestOptions.DEFAULT);
|
||||
boolean acknowledged = createIndexResponse.isAcknowledged();
|
||||
|
||||
Reference in New Issue
Block a user