/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ namespace TencentCloud.Yunsou.V20191115.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class SearchResult : AbstractModel { /// /// 检索耗时,单位ms /// [JsonProperty("CostTime")] public ulong? CostTime{ get; set; } /// /// 搜索最多可以展示的结果数,多页 /// [JsonProperty("DisplayNum")] public ulong? DisplayNum{ get; set; } /// /// 和检索请求中的echo相对应 /// [JsonProperty("Echo")] public string Echo{ get; set; } /// /// 检索结果的估算篇数,由索引平台估算 /// [JsonProperty("EResultNum")] public ulong? EResultNum{ get; set; } /// /// 检索返回的当前页码结果数 /// [JsonProperty("ResultNum")] public ulong? ResultNum{ get; set; } /// /// 检索结果列表 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ResultList")] public SearchResultItem[] ResultList{ get; set; } /// /// 检索的分词结果,array类型,可包含多个 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("SegList")] public SearchResultSeg[] SegList{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "CostTime", this.CostTime); this.SetParamSimple(map, prefix + "DisplayNum", this.DisplayNum); this.SetParamSimple(map, prefix + "Echo", this.Echo); this.SetParamSimple(map, prefix + "EResultNum", this.EResultNum); this.SetParamSimple(map, prefix + "ResultNum", this.ResultNum); this.SetParamArrayObj(map, prefix + "ResultList.", this.ResultList); this.SetParamArrayObj(map, prefix + "SegList.", this.SegList); } } }