/*
* 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
{
///
/// 云搜的业务ID,用以表明当前数据请求的业务
///
[JsonProperty("ResourceId")]
public ulong? ResourceId{ get; set; }
///
/// 检索串
///
[JsonProperty("SearchQuery")]
public string SearchQuery{ get; set; }
///
/// 当前页,从第0页开始计算
///
[JsonProperty("PageId")]
public ulong? PageId{ get; set; }
///
/// 每页结果数
///
[JsonProperty("NumPerPage")]
public ulong? NumPerPage{ get; set; }
///
/// 当前检索号,用于定位问题,建议指定并且全局唯一
///
[JsonProperty("SearchId")]
public string SearchId{ get; set; }
///
/// 请求编码,0表示utf8,1表示gbk,建议指定
///
[JsonProperty("QueryEncode")]
public ulong? QueryEncode{ get; set; }
///
/// 排序类型
///
[JsonProperty("RankType")]
public ulong? RankType{ get; set; }
///
/// 数值过滤,结果中按属性过滤
///
[JsonProperty("NumFilter")]
public string NumFilter{ get; set; }
///
/// 分类过滤,导航类检索请求
///
[JsonProperty("ClFilter")]
public string ClFilter{ get; set; }
///
/// 检索用户相关字段
///
[JsonProperty("Extra")]
public string Extra{ get; set; }
///
/// 检索来源
///
[JsonProperty("SourceId")]
public ulong? SourceId{ get; set; }
///
/// 是否进行二次检索,0关闭,1打开
///
[JsonProperty("SecondSearch")]
public ulong? SecondSearch{ get; set; }
///
/// 指定返回最大篇数,无特殊原因不建议指定
///
[JsonProperty("MaxDocReturn")]
public ulong? MaxDocReturn{ get; set; }
///
/// 是否smartbox检索,0关闭,1打开
///
[JsonProperty("IsSmartbox")]
public ulong? IsSmartbox{ get; set; }
///
/// 是否打开高红标亮,0关闭,1打开
///
[JsonProperty("EnableAbsHighlight")]
public ulong? EnableAbsHighlight{ get; set; }
///
/// 指定访问QC纠错业务ID
///
[JsonProperty("QcBid")]
public ulong? QcBid{ get; set; }
///
/// 按指定字段进行group by,只能对数值字段进行操作
///
[JsonProperty("GroupBy")]
public string GroupBy{ get; set; }
///
/// 按指定字段进行distinct,只能对数值字段进行操作
///
[JsonProperty("Distinct")]
public string Distinct{ get; set; }
///
/// 高级排序参数,具体参见高级排序说明
///
[JsonProperty("L4RankExpression")]
public string L4RankExpression{ get; set; }
///
/// 高级排序参数,具体参见高级排序说明
///
[JsonProperty("MatchValue")]
public string MatchValue{ get; set; }
///
/// 经度信息
///
[JsonProperty("Longitude")]
public float? Longitude{ get; set; }
///
/// 纬度信息
///
[JsonProperty("Latitude")]
public float? Latitude{ get; set; }
///
/// 分类过滤并集
///
[JsonProperty("MultiFilter")]
public string[] MultiFilter{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary 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);
}
}
}