public class ModifyIndexRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| ModifyIndexRequest() | 
| ModifyIndexRequest(ModifyIndexRequest 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 索引状态。false:关闭索引, true:开启索引
开启后可对日志进行检索分析,将产生索引流量、索引存储及相应费用。[费用详情](https://cloud.tencent.com/document/product/614/45802#.E8.AE.A1.E8.B4.B9.E9.A1.B9) | 
| 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 索引状态。false:关闭索引, true:开启索引
开启后可对日志进行检索分析,将产生索引流量、索引存储及相应费用。[费用详情](https://cloud.tencent.com/document/product/614/45802#.E8.AE.A1.E8.B4.B9.E9.A1.B9) | 
| 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 ModifyIndexRequest()
public ModifyIndexRequest(ModifyIndexRequest source)
public String getTopicId()
public void setTopicId(String TopicId)
TopicId - 日志主题Id。
- 通过[获取日志主题列表](https://cloud.tencent.com/document/product/614/56454)获取日志主题Id。public Boolean getStatus()
public void setStatus(Boolean Status)
Status - 索引状态。false:关闭索引, true:开启索引
开启后可对日志进行检索分析,将产生索引流量、索引存储及相应费用。[费用详情](https://cloud.tencent.com/document/product/614/45802#.E8.AE.A1.E8.B4.B9.E9.A1.B9)public RuleInfo getRule()
public void setRule(RuleInfo Rule)
Rule - 索引规则public 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.