首次推送
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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 DataManipulationRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 操作类型,add或del
|
||||
/// </summary>
|
||||
[JsonProperty("OpType")]
|
||||
public string OpType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据编码类型
|
||||
/// </summary>
|
||||
[JsonProperty("Encoding")]
|
||||
public string Encoding{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据
|
||||
/// </summary>
|
||||
[JsonProperty("Contents")]
|
||||
public string Contents{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 应用Id
|
||||
/// </summary>
|
||||
[JsonProperty("ResourceId")]
|
||||
public ulong? ResourceId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "OpType", this.OpType);
|
||||
this.SetParamSimple(map, prefix + "Encoding", this.Encoding);
|
||||
this.SetParamSimple(map, prefix + "Contents", this.Contents);
|
||||
this.SetParamSimple(map, prefix + "ResourceId", this.ResourceId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* 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 DataManipulationResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 数据操作结果
|
||||
/// </summary>
|
||||
[JsonProperty("Data")]
|
||||
public DataManipulationResult Data{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamObj(map, prefix + "Data.", this.Data);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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 DataManipulationResult : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 应用ID
|
||||
/// </summary>
|
||||
[JsonProperty("AppId")]
|
||||
public ulong? AppId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 序号
|
||||
/// </summary>
|
||||
[JsonProperty("Seq")]
|
||||
public long? Seq{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结果
|
||||
/// </summary>
|
||||
[JsonProperty("TotalResult")]
|
||||
public string TotalResult{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作结果明细
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Result")]
|
||||
public DataManipulationResultItem[] Result{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 异常信息
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("ErrorResult")]
|
||||
public string ErrorResult{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "AppId", this.AppId);
|
||||
this.SetParamSimple(map, prefix + "Seq", this.Seq);
|
||||
this.SetParamSimple(map, prefix + "TotalResult", this.TotalResult);
|
||||
this.SetParamArrayObj(map, prefix + "Result.", this.Result);
|
||||
this.SetParamSimple(map, prefix + "ErrorResult", this.ErrorResult);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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 DataManipulationResultItem : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 结果
|
||||
/// </summary>
|
||||
[JsonProperty("Result")]
|
||||
public string Result{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文档ID
|
||||
/// </summary>
|
||||
[JsonProperty("DocId")]
|
||||
public string DocId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 错误码
|
||||
/// </summary>
|
||||
[JsonProperty("Errno")]
|
||||
public long? Errno{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Result", this.Result);
|
||||
this.SetParamSimple(map, prefix + "DocId", this.DocId);
|
||||
this.SetParamSimple(map, prefix + "Errno", this.Errno);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
197
TencentCloud/Yunsou/V20191115/Models/DataSearchRequest.cs
Normal file
197
TencentCloud/Yunsou/V20191115/Models/DataSearchRequest.cs
Normal file
@@ -0,0 +1,197 @@
|
||||
/*
|
||||
* 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 DataSearchRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 云搜的业务ID,用以表明当前数据请求的业务
|
||||
/// </summary>
|
||||
[JsonProperty("ResourceId")]
|
||||
public ulong? ResourceId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 检索串
|
||||
/// </summary>
|
||||
[JsonProperty("SearchQuery")]
|
||||
public string SearchQuery{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前页,从第0页开始计算
|
||||
/// </summary>
|
||||
[JsonProperty("PageId")]
|
||||
public ulong? PageId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 每页结果数
|
||||
/// </summary>
|
||||
[JsonProperty("NumPerPage")]
|
||||
public ulong? NumPerPage{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前检索号,用于定位问题,建议指定并且全局唯一
|
||||
/// </summary>
|
||||
[JsonProperty("SearchId")]
|
||||
public string SearchId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 请求编码,0表示utf8,1表示gbk,建议指定
|
||||
/// </summary>
|
||||
[JsonProperty("QueryEncode")]
|
||||
public ulong? QueryEncode{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序类型
|
||||
/// </summary>
|
||||
[JsonProperty("RankType")]
|
||||
public ulong? RankType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数值过滤,结果中按属性过滤
|
||||
/// </summary>
|
||||
[JsonProperty("NumFilter")]
|
||||
public string NumFilter{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类过滤,导航类检索请求
|
||||
/// </summary>
|
||||
[JsonProperty("ClFilter")]
|
||||
public string ClFilter{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 检索用户相关字段
|
||||
/// </summary>
|
||||
[JsonProperty("Extra")]
|
||||
public string Extra{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 检索来源
|
||||
/// </summary>
|
||||
[JsonProperty("SourceId")]
|
||||
public ulong? SourceId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否进行二次检索,0关闭,1打开
|
||||
/// </summary>
|
||||
[JsonProperty("SecondSearch")]
|
||||
public ulong? SecondSearch{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 指定返回最大篇数,无特殊原因不建议指定
|
||||
/// </summary>
|
||||
[JsonProperty("MaxDocReturn")]
|
||||
public ulong? MaxDocReturn{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否smartbox检索,0关闭,1打开
|
||||
/// </summary>
|
||||
[JsonProperty("IsSmartbox")]
|
||||
public ulong? IsSmartbox{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否打开高红标亮,0关闭,1打开
|
||||
/// </summary>
|
||||
[JsonProperty("EnableAbsHighlight")]
|
||||
public ulong? EnableAbsHighlight{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 指定访问QC纠错业务ID
|
||||
/// </summary>
|
||||
[JsonProperty("QcBid")]
|
||||
public ulong? QcBid{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 按指定字段进行group by,只能对数值字段进行操作
|
||||
/// </summary>
|
||||
[JsonProperty("GroupBy")]
|
||||
public string GroupBy{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 按指定字段进行distinct,只能对数值字段进行操作
|
||||
/// </summary>
|
||||
[JsonProperty("Distinct")]
|
||||
public string Distinct{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 高级排序参数,具体参见高级排序说明
|
||||
/// </summary>
|
||||
[JsonProperty("L4RankExpression")]
|
||||
public string L4RankExpression{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 高级排序参数,具体参见高级排序说明
|
||||
/// </summary>
|
||||
[JsonProperty("MatchValue")]
|
||||
public string MatchValue{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 经度信息
|
||||
/// </summary>
|
||||
[JsonProperty("Longitude")]
|
||||
public float? Longitude{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 纬度信息
|
||||
/// </summary>
|
||||
[JsonProperty("Latitude")]
|
||||
public float? Latitude{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类过滤并集
|
||||
/// </summary>
|
||||
[JsonProperty("MultiFilter")]
|
||||
public string[] MultiFilter{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "ResourceId", this.ResourceId);
|
||||
this.SetParamSimple(map, prefix + "SearchQuery", this.SearchQuery);
|
||||
this.SetParamSimple(map, prefix + "PageId", this.PageId);
|
||||
this.SetParamSimple(map, prefix + "NumPerPage", this.NumPerPage);
|
||||
this.SetParamSimple(map, prefix + "SearchId", this.SearchId);
|
||||
this.SetParamSimple(map, prefix + "QueryEncode", this.QueryEncode);
|
||||
this.SetParamSimple(map, prefix + "RankType", this.RankType);
|
||||
this.SetParamSimple(map, prefix + "NumFilter", this.NumFilter);
|
||||
this.SetParamSimple(map, prefix + "ClFilter", this.ClFilter);
|
||||
this.SetParamSimple(map, prefix + "Extra", this.Extra);
|
||||
this.SetParamSimple(map, prefix + "SourceId", this.SourceId);
|
||||
this.SetParamSimple(map, prefix + "SecondSearch", this.SecondSearch);
|
||||
this.SetParamSimple(map, prefix + "MaxDocReturn", this.MaxDocReturn);
|
||||
this.SetParamSimple(map, prefix + "IsSmartbox", this.IsSmartbox);
|
||||
this.SetParamSimple(map, prefix + "EnableAbsHighlight", this.EnableAbsHighlight);
|
||||
this.SetParamSimple(map, prefix + "QcBid", this.QcBid);
|
||||
this.SetParamSimple(map, prefix + "GroupBy", this.GroupBy);
|
||||
this.SetParamSimple(map, prefix + "Distinct", this.Distinct);
|
||||
this.SetParamSimple(map, prefix + "L4RankExpression", this.L4RankExpression);
|
||||
this.SetParamSimple(map, prefix + "MatchValue", this.MatchValue);
|
||||
this.SetParamSimple(map, prefix + "Longitude", this.Longitude);
|
||||
this.SetParamSimple(map, prefix + "Latitude", this.Latitude);
|
||||
this.SetParamArraySimple(map, prefix + "MultiFilter.", this.MultiFilter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Yunsou/V20191115/Models/DataSearchResponse.cs
Normal file
50
TencentCloud/Yunsou/V20191115/Models/DataSearchResponse.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* 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 DataSearchResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 检索结果
|
||||
/// </summary>
|
||||
[JsonProperty("Data")]
|
||||
public SearchResult Data{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamObj(map, prefix + "Data.", this.Data);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
87
TencentCloud/Yunsou/V20191115/Models/SearchResult.cs
Normal file
87
TencentCloud/Yunsou/V20191115/Models/SearchResult.cs
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 检索耗时,单位ms
|
||||
/// </summary>
|
||||
[JsonProperty("CostTime")]
|
||||
public ulong? CostTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 搜索最多可以展示的结果数,多页
|
||||
/// </summary>
|
||||
[JsonProperty("DisplayNum")]
|
||||
public ulong? DisplayNum{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 和检索请求中的echo相对应
|
||||
/// </summary>
|
||||
[JsonProperty("Echo")]
|
||||
public string Echo{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 检索结果的估算篇数,由索引平台估算
|
||||
/// </summary>
|
||||
[JsonProperty("EResultNum")]
|
||||
public ulong? EResultNum{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 检索返回的当前页码结果数
|
||||
/// </summary>
|
||||
[JsonProperty("ResultNum")]
|
||||
public ulong? ResultNum{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 检索结果列表
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("ResultList")]
|
||||
public SearchResultItem[] ResultList{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 检索的分词结果,array类型,可包含多个
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("SegList")]
|
||||
public SearchResultSeg[] SegList{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
71
TencentCloud/Yunsou/V20191115/Models/SearchResultItem.cs
Normal file
71
TencentCloud/Yunsou/V20191115/Models/SearchResultItem.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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 SearchResultItem : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 动态摘要信息
|
||||
/// </summary>
|
||||
[JsonProperty("DocAbs")]
|
||||
public string DocAbs{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 检索文档id
|
||||
/// </summary>
|
||||
[JsonProperty("DocId")]
|
||||
public string DocId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 原始文档信息
|
||||
/// </summary>
|
||||
[JsonProperty("DocMeta")]
|
||||
public string DocMeta{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 精计算得分
|
||||
/// </summary>
|
||||
[JsonProperty("L2Score")]
|
||||
public float? L2Score{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文档级回传信息
|
||||
/// </summary>
|
||||
[JsonProperty("SearchDebuginfo")]
|
||||
public string SearchDebuginfo{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "DocAbs", this.DocAbs);
|
||||
this.SetParamSimple(map, prefix + "DocId", this.DocId);
|
||||
this.SetParamSimple(map, prefix + "DocMeta", this.DocMeta);
|
||||
this.SetParamSimple(map, prefix + "L2Score", this.L2Score);
|
||||
this.SetParamSimple(map, prefix + "SearchDebuginfo", this.SearchDebuginfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Yunsou/V20191115/Models/SearchResultSeg.cs
Normal file
43
TencentCloud/Yunsou/V20191115/Models/SearchResultSeg.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* 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 SearchResultSeg : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 分词
|
||||
/// </summary>
|
||||
[JsonProperty("SegStr")]
|
||||
public string SegStr{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "SegStr", this.SegStr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
136
TencentCloud/Yunsou/V20191115/YunsouClient.cs
Normal file
136
TencentCloud/Yunsou/V20191115/YunsouClient.cs
Normal file
@@ -0,0 +1,136 @@
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using System.Threading.Tasks;
|
||||
using TencentCloud.Common;
|
||||
using TencentCloud.Common.Profile;
|
||||
using TencentCloud.Yunsou.V20191115.Models;
|
||||
|
||||
public class YunsouClient : AbstractClient{
|
||||
|
||||
private const string endpoint = "yunsou.tencentcloudapi.com";
|
||||
private const string version = "2019-11-15";
|
||||
|
||||
/// <summary>
|
||||
/// Client constructor.
|
||||
/// </summary>
|
||||
/// <param name="credential">Credentials.</param>
|
||||
/// <param name="region">Region name, such as "ap-guangzhou".</param>
|
||||
public YunsouClient(Credential credential, string region)
|
||||
: this(credential, region, new ClientProfile())
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Client Constructor.
|
||||
/// </summary>
|
||||
/// <param name="credential">Credentials.</param>
|
||||
/// <param name="region">Region name, such as "ap-guangzhou".</param>
|
||||
/// <param name="profile">Client profiles.</param>
|
||||
public YunsouClient(Credential credential, string region, ClientProfile profile)
|
||||
: base(endpoint, version, credential, region, profile)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 上传云搜数据的API接口。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DataManipulationRequest"/></param>
|
||||
/// <returns><see cref="DataManipulationResponse"/></returns>
|
||||
public async Task<DataManipulationResponse> DataManipulation(DataManipulationRequest req)
|
||||
{
|
||||
JsonResponseModel<DataManipulationResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DataManipulation");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DataManipulationResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 上传云搜数据的API接口。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DataManipulationRequest"/></param>
|
||||
/// <returns><see cref="DataManipulationResponse"/></returns>
|
||||
public DataManipulationResponse DataManipulationSync(DataManipulationRequest req)
|
||||
{
|
||||
JsonResponseModel<DataManipulationResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DataManipulation");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DataManipulationResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 用于检索云搜中的数据。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DataSearchRequest"/></param>
|
||||
/// <returns><see cref="DataSearchResponse"/></returns>
|
||||
public async Task<DataSearchResponse> DataSearch(DataSearchRequest req)
|
||||
{
|
||||
JsonResponseModel<DataSearchResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DataSearch");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DataSearchResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 用于检索云搜中的数据。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DataSearchRequest"/></param>
|
||||
/// <returns><see cref="DataSearchResponse"/></returns>
|
||||
public DataSearchResponse DataSearchSync(DataSearchRequest req)
|
||||
{
|
||||
JsonResponseModel<DataSearchResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DataSearch");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DataSearchResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user