Documentation ¶
Index ¶
Constants ¶
View Source
const APIVersion = "2018-05-04"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) DataManipulation ¶
func (c *Client) DataManipulation(request *DataManipulationRequest) (response *DataManipulationResponse, err error)
上传云搜数据的API接口
func (*Client) DataSearch ¶
func (c *Client) DataSearch(request *DataSearchRequest) (response *DataSearchResponse, err error)
用于检索云搜中的数据
type DataManipulationRequest ¶
type DataManipulationRequest struct { *tchttp.BaseRequest // 操作类型,add或del OpType *string `json:"OpType,omitempty" name:"OpType"` // 数据编码类型 Encoding *string `json:"Encoding,omitempty" name:"Encoding"` // 数据 Contents *string `json:"Contents,omitempty" name:"Contents"` // 应用Id ResourceId *uint64 `json:"ResourceId,omitempty" name:"ResourceId"` }
func NewDataManipulationRequest ¶
func NewDataManipulationRequest() (request *DataManipulationRequest)
func (*DataManipulationRequest) FromJsonString ¶
func (r *DataManipulationRequest) FromJsonString(s string) error
func (*DataManipulationRequest) ToJsonString ¶
func (r *DataManipulationRequest) ToJsonString() string
type DataManipulationResponse ¶
type DataManipulationResponse struct { *tchttp.BaseResponse Response *struct { // 返回信息 RetMsg *string `json:"RetMsg,omitempty" name:"RetMsg"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDataManipulationResponse ¶
func NewDataManipulationResponse() (response *DataManipulationResponse)
func (*DataManipulationResponse) FromJsonString ¶
func (r *DataManipulationResponse) FromJsonString(s string) error
func (*DataManipulationResponse) ToJsonString ¶
func (r *DataManipulationResponse) ToJsonString() string
type DataSearchRequest ¶
type DataSearchRequest struct { *tchttp.BaseRequest // 云搜的业务ID,用以表明当前数据请求的业务 ResourceId *uint64 `json:"ResourceId,omitempty" name:"ResourceId"` // 检索串 SearchQuery *string `json:"SearchQuery,omitempty" name:"SearchQuery"` // 当前页,从第0页开始计算 PageId *uint64 `json:"PageId,omitempty" name:"PageId"` // 每页结果数 NumPerPage *uint64 `json:"NumPerPage,omitempty" name:"NumPerPage"` // 当前检索号,用于定位问题,建议指定并且全局唯一 SearchId *string `json:"SearchId,omitempty" name:"SearchId"` // 请求编码,0表示utf8,1表示gbk,建议指定 QueryEncode *uint64 `json:"QueryEncode,omitempty" name:"QueryEncode"` // 排序类型 RankType *uint64 `json:"RankType,omitempty" name:"RankType"` // 数值过滤,结果中按属性过滤 NumFilter *string `json:"NumFilter,omitempty" name:"NumFilter"` // 分类过滤,导航类检索请求 ClFilter *string `json:"ClFilter,omitempty" name:"ClFilter"` // 检索用户相关字段 Extra *string `json:"Extra,omitempty" name:"Extra"` // 检索来源 SourceId *uint64 `json:"SourceId,omitempty" name:"SourceId"` // 是否进行二次检索,0关闭,1打开 SecondSearch *uint64 `json:"SecondSearch,omitempty" name:"SecondSearch"` // 指定返回最大篇数,无特殊原因不建议指定 MaxDocReturn *uint64 `json:"MaxDocReturn,omitempty" name:"MaxDocReturn"` // 是否smartbox检索,0关闭,1打开 IsSmartbox *uint64 `json:"IsSmartbox,omitempty" name:"IsSmartbox"` // 是否打开高红标亮,0关闭,1打开 EnableAbsHighlight *uint64 `json:"EnableAbsHighlight,omitempty" name:"EnableAbsHighlight"` // 指定访问QC纠错业务ID QcBid *uint64 `json:"QcBid,omitempty" name:"QcBid"` // 按指定字段进行group by,只能对数值字段进行操作 GroupBy *string `json:"GroupBy,omitempty" name:"GroupBy"` // 按指定字段进行distinct,只能对数值字段进行操作 Distinct *string `json:"Distinct,omitempty" name:"Distinct"` // 高级排序参数,具体参见高级排序说明 L4RankExpression *string `json:"L4RankExpression,omitempty" name:"L4RankExpression"` // 高级排序参数,具体参见高级排序说明 MatchValue *string `json:"MatchValue,omitempty" name:"MatchValue"` // 经度信息 Longitude *float64 `json:"Longitude,omitempty" name:"Longitude"` // 纬度信息 Latitude *float64 `json:"Latitude,omitempty" name:"Latitude"` // 分类过滤并集 MultiFilter []*string `json:"MultiFilter,omitempty" name:"MultiFilter" list` }
func NewDataSearchRequest ¶
func NewDataSearchRequest() (request *DataSearchRequest)
func (*DataSearchRequest) FromJsonString ¶
func (r *DataSearchRequest) FromJsonString(s string) error
func (*DataSearchRequest) ToJsonString ¶
func (r *DataSearchRequest) ToJsonString() string
type DataSearchResponse ¶
type DataSearchResponse struct { *tchttp.BaseResponse Response *struct { // 数据返回信息 RetMsg *string `json:"RetMsg,omitempty" name:"RetMsg"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDataSearchResponse ¶
func NewDataSearchResponse() (response *DataSearchResponse)
func (*DataSearchResponse) FromJsonString ¶
func (r *DataSearchResponse) FromJsonString(s string) error
func (*DataSearchResponse) ToJsonString ¶
func (r *DataSearchResponse) ToJsonString() string
Click to show internal directories.
Click to hide internal directories.