Class: TencentCloud::Es::V20250101::WebContent

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20250101/models.rb

Overview

搜索结果网页信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(query = nil, title = nil, url = nil, time = nil, content = nil, chunkindex = nil, score = nil) ⇒ WebContent

Returns a new instance of WebContent.



1241
1242
1243
1244
1245
1246
1247
1248
1249
# File 'lib/v20250101/models.rb', line 1241

def initialize(query=nil, title=nil, url=nil, time=nil, content=nil, chunkindex=nil, score=nil)
  @Query = query
  @Title = title
  @Url = url
  @Time = time
  @Content = content
  @ChunkIndex = chunkindex
  @Score = score
end

Instance Attribute Details

#ChunkIndexObject

Parameters:

  • Query:

    搜素问题

  • Title:

    标题

  • Url:

    链接

  • Time:

    时间

  • Content:

    网页内容

  • ChunkIndex:

    切片索引

  • Score:

    分数



1239
1240
1241
# File 'lib/v20250101/models.rb', line 1239

def ChunkIndex
  @ChunkIndex
end

#ContentObject

Parameters:

  • Query:

    搜素问题

  • Title:

    标题

  • Url:

    链接

  • Time:

    时间

  • Content:

    网页内容

  • ChunkIndex:

    切片索引

  • Score:

    分数



1239
1240
1241
# File 'lib/v20250101/models.rb', line 1239

def Content
  @Content
end

#QueryObject

Parameters:

  • Query:

    搜素问题

  • Title:

    标题

  • Url:

    链接

  • Time:

    时间

  • Content:

    网页内容

  • ChunkIndex:

    切片索引

  • Score:

    分数



1239
1240
1241
# File 'lib/v20250101/models.rb', line 1239

def Query
  @Query
end

#ScoreObject

Parameters:

  • Query:

    搜素问题

  • Title:

    标题

  • Url:

    链接

  • Time:

    时间

  • Content:

    网页内容

  • ChunkIndex:

    切片索引

  • Score:

    分数



1239
1240
1241
# File 'lib/v20250101/models.rb', line 1239

def Score
  @Score
end

#TimeObject

Parameters:

  • Query:

    搜素问题

  • Title:

    标题

  • Url:

    链接

  • Time:

    时间

  • Content:

    网页内容

  • ChunkIndex:

    切片索引

  • Score:

    分数



1239
1240
1241
# File 'lib/v20250101/models.rb', line 1239

def Time
  @Time
end

#TitleObject

Parameters:

  • Query:

    搜素问题

  • Title:

    标题

  • Url:

    链接

  • Time:

    时间

  • Content:

    网页内容

  • ChunkIndex:

    切片索引

  • Score:

    分数



1239
1240
1241
# File 'lib/v20250101/models.rb', line 1239

def Title
  @Title
end

#UrlObject

Parameters:

  • Query:

    搜素问题

  • Title:

    标题

  • Url:

    链接

  • Time:

    时间

  • Content:

    网页内容

  • ChunkIndex:

    切片索引

  • Score:

    分数



1239
1240
1241
# File 'lib/v20250101/models.rb', line 1239

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



1251
1252
1253
1254
1255
1256
1257
1258
1259
# File 'lib/v20250101/models.rb', line 1251

def deserialize(params)
  @Query = params['Query']
  @Title = params['Title']
  @Url = params['Url']
  @Time = params['Time']
  @Content = params['Content']
  @ChunkIndex = params['ChunkIndex']
  @Score = params['Score']
end