public class CreateIndexRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| CreateIndexRequest() | 
| CreateIndexRequest(CreateIndexRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| Boolean | getIncludeInternalFields()Get 内置保留字段(`__FILENAME__`,`__HOSTNAME__`及`__SOURCE__`)是否包含至全文索引,默认为false,推荐设置为true
 false:不包含
 true:包含 | 
| Long | getMetadataFlag()Get 元数据字段(前缀为`__TAG__`的字段)是否包含至全文索引,默认为0,推荐设置为1
 0:仅包含开启键值索引的元数据字段
 1:包含所有元数据字段
 2:不包含任何元数据字段 | 
| RuleInfo | getRule()Get 索引规则 | 
| Boolean | getStatus()Get 是否生效,默认为true | 
| String | getTopicId()Get 日志主题Id。
- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。 | 
| void | setIncludeInternalFields(Boolean IncludeInternalFields)Set 内置保留字段(`__FILENAME__`,`__HOSTNAME__`及`__SOURCE__`)是否包含至全文索引,默认为false,推荐设置为true
 false:不包含
 true:包含 | 
| void | setMetadataFlag(Long MetadataFlag)Set 元数据字段(前缀为`__TAG__`的字段)是否包含至全文索引,默认为0,推荐设置为1
 0:仅包含开启键值索引的元数据字段
 1:包含所有元数据字段
 2:不包含任何元数据字段 | 
| void | setRule(RuleInfo Rule)Set 索引规则 | 
| void | setStatus(Boolean Status)Set 是否生效,默认为true | 
| void | setTopicId(String TopicId)Set 日志主题Id。
- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CreateIndexRequest()
public CreateIndexRequest(CreateIndexRequest source)
public String getTopicId()
public void setTopicId(String TopicId)
TopicId - 日志主题Id。
- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。public RuleInfo getRule()
public void setRule(RuleInfo Rule)
Rule - 索引规则public Boolean getStatus()
public void setStatus(Boolean Status)
Status - 是否生效,默认为truepublic Boolean getIncludeInternalFields()
public void setIncludeInternalFields(Boolean IncludeInternalFields)
IncludeInternalFields - 内置保留字段(`__FILENAME__`,`__HOSTNAME__`及`__SOURCE__`)是否包含至全文索引,默认为false,推荐设置为true
 false:不包含
 true:包含public Long getMetadataFlag()
public void setMetadataFlag(Long MetadataFlag)
MetadataFlag - 元数据字段(前缀为`__TAG__`的字段)是否包含至全文索引,默认为0,推荐设置为1
 0:仅包含开启键值索引的元数据字段
 1:包含所有元数据字段
 2:不包含任何元数据字段Copyright © 2025. All rights reserved.