Class: Aws::KendraRanking::Types::Document

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-kendraranking/types.rb

Overview

Information about a document from a search service such as OpenSearch (self managed). Amazon Kendra Intelligent Ranking uses this information to rank and score on.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#bodyString

The body text of the search service’s document.

Returns:

  • (String)


262
263
264
265
266
267
268
269
270
271
272
# File 'lib/aws-sdk-kendraranking/types.rb', line 262

class Document < Struct.new(
  :id,
  :group_id,
  :title,
  :body,
  :tokenized_title,
  :tokenized_body,
  :original_score)
  SENSITIVE = []
  include Aws::Structure
end

#group_idString

The optional group identifier of the document from the search service. Documents with the same group identifier are grouped together and processed as one document within the service.

Returns:

  • (String)


262
263
264
265
266
267
268
269
270
271
272
# File 'lib/aws-sdk-kendraranking/types.rb', line 262

class Document < Struct.new(
  :id,
  :group_id,
  :title,
  :body,
  :tokenized_title,
  :tokenized_body,
  :original_score)
  SENSITIVE = []
  include Aws::Structure
end

#idString

The identifier of the document from the search service.

Returns:

  • (String)


262
263
264
265
266
267
268
269
270
271
272
# File 'lib/aws-sdk-kendraranking/types.rb', line 262

class Document < Struct.new(
  :id,
  :group_id,
  :title,
  :body,
  :tokenized_title,
  :tokenized_body,
  :original_score)
  SENSITIVE = []
  include Aws::Structure
end

#original_scoreFloat

The original document score or rank from the search service. Amazon Kendra Intelligent Ranking gives the document a new score or rank based on its intelligent search algorithms.

Returns:

  • (Float)


262
263
264
265
266
267
268
269
270
271
272
# File 'lib/aws-sdk-kendraranking/types.rb', line 262

class Document < Struct.new(
  :id,
  :group_id,
  :title,
  :body,
  :tokenized_title,
  :tokenized_body,
  :original_score)
  SENSITIVE = []
  include Aws::Structure
end

#titleString

The title of the search service’s document.

Returns:

  • (String)


262
263
264
265
266
267
268
269
270
271
272
# File 'lib/aws-sdk-kendraranking/types.rb', line 262

class Document < Struct.new(
  :id,
  :group_id,
  :title,
  :body,
  :tokenized_title,
  :tokenized_body,
  :original_score)
  SENSITIVE = []
  include Aws::Structure
end

#tokenized_bodyArray<String>

The body text of the search service’s document represented as a list of tokens or words. You must choose to provide ‘Body` or `TokenizedBody`. You cannot provide both.

Returns:

  • (Array<String>)


262
263
264
265
266
267
268
269
270
271
272
# File 'lib/aws-sdk-kendraranking/types.rb', line 262

class Document < Struct.new(
  :id,
  :group_id,
  :title,
  :body,
  :tokenized_title,
  :tokenized_body,
  :original_score)
  SENSITIVE = []
  include Aws::Structure
end

#tokenized_titleArray<String>

The title of the search service’s document represented as a list of tokens or words. You must choose to provide ‘Title` or `TokenizedTitle`. You cannot provide both.

Returns:

  • (Array<String>)


262
263
264
265
266
267
268
269
270
271
272
# File 'lib/aws-sdk-kendraranking/types.rb', line 262

class Document < Struct.new(
  :id,
  :group_id,
  :title,
  :body,
  :tokenized_title,
  :tokenized_body,
  :original_score)
  SENSITIVE = []
  include Aws::Structure
end