通过命令行工具执行describe_search_index
命令查询多元索引描述信息。更多信息,请参见多元索引。
以下示例用于查看search_index多元索引的信息。
describe_search_index -n search_index
返回结果示例如下所示。其中为Index schema多元索引的Schema,TimeToLive为多元索引的数据生命周期。
Index schema:
{
"IndexSetting": {
"RoutingFields": null
},
"FieldSchemas": [
{
"FieldName": "id",
"FieldType": "KEYWORD",
"Index": true,
"IndexOptions": null,
"Analyzer": null,
"AnalyzerParameter": null,
"EnableSortAndAgg": true,
"EnableHighlighting": null,
"Store": false,
"IsArray": false,
"FieldSchemas": null,
"IsVirtualField": false,
"SourceFieldNames": null,
"DateFormats": null
},
{
"FieldName": "Col_Keyword",
"FieldType": "KEYWORD",
"Index": true,
"IndexOptions": null,
"Analyzer": null,
"AnalyzerParameter": null,
"EnableSortAndAgg": true,
"EnableHighlighting": null,
"Store": false,
"IsArray": false,
"FieldSchemas": null,
"IsVirtualField": false,
"SourceFieldNames": null,
"DateFormats": null
},
{
"FieldName": "Col_Long",
"FieldType": "LONG",
"Index": true,
"IndexOptions": null,
"Analyzer": null,
"AnalyzerParameter": null,
"EnableSortAndAgg": true,
"EnableHighlighting": null,
"Store": false,
"IsArray": false,
"FieldSchemas": null,
"IsVirtualField": false,
"SourceFieldNames": null,
"DateFormats": null
},
{
"FieldName": "Col_Text",
"FieldType": "TEXT",
"Index": true,
"IndexOptions": null,
"Analyzer": "single_word",
"AnalyzerParameter": {
"CaseSensitive": null,
"DelimitWord": null
},
"EnableSortAndAgg": false,
"EnableHighlighting": null,
"Store": false,
"IsArray": false,
"FieldSchemas": null,
"IsVirtualField": false,
"SourceFieldNames": null,
"DateFormats": null
},
{
"FieldName": "Timestamp",
"FieldType": "LONG",
"Index": true,
"IndexOptions": null,
"Analyzer": null,
"AnalyzerParameter": null,
"EnableSortAndAgg": true,
"EnableHighlighting": null,
"Store": false,
"IsArray": false,
"FieldSchemas": null,
"IsVirtualField": false,
"SourceFieldNames": null,
"DateFormats": null
}
],
"IndexSort": {
"Sorters": [
{
"Name": "PrimaryKeySort",
"Sorter": {
"Order": "ASC"
}
}
]
}
}
TimeToLive: -1