@Documented @Target(value=METHOD) @Retention(value=RUNTIME) public @interface Index
| 限定符和类型 | 可选元素和说明 |
|---|---|
String |
id
创建索引的时候,可以指定Id
|
org.elasticsearch.action.DocWriteRequest.OpType |
opType
创建索引的方式
|
String |
parent |
String |
pipeline |
org.elasticsearch.action.support.WriteRequest.RefreshPolicy |
refreshPolicy |
String |
timeout
数字 + 时间单位(s/m/h)
|
org.elasticsearch.index.VersionType |
versionType |
String |
waitForActiveShards
获取等待的主分片和副本分片数量,默认只需要主分片活跃就可以
|
public abstract String id
public abstract org.elasticsearch.action.DocWriteRequest.OpType opType
public abstract org.elasticsearch.index.VersionType versionType
public abstract String parent
public abstract String pipeline
public abstract String timeout
public abstract org.elasticsearch.action.support.WriteRequest.RefreshPolicy refreshPolicy
public abstract String waitForActiveShards
Copyright © 2021. All rights reserved.