Class: Aws::CloudSearch::Types::TextOptions
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudSearch::Types::TextOptions
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-cloudsearch/types.rb
Overview
Options for text field. Present if ‘IndexFieldType` specifies the field is of type `text`. A `text` field is always searchable. All options are enabled by default.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#analysis_scheme ⇒ String
The name of an analysis scheme for a ‘text` field.
-
#default_value ⇒ String
A value to use for the field if the field isn’t specified for a document.
-
#highlight_enabled ⇒ Boolean
Whether highlights can be returned for the field.
-
#return_enabled ⇒ Boolean
Whether the contents of the field can be returned in the search results.
-
#sort_enabled ⇒ Boolean
Whether the field can be used to sort the search results.
-
#source_field ⇒ String
A string that represents the name of an index field.
Instance Attribute Details
#analysis_scheme ⇒ String
The name of an analysis scheme for a ‘text` field.
1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 |
# File 'lib/aws-sdk-cloudsearch/types.rb', line 1947 class TextOptions < Struct.new( :default_value, :source_field, :return_enabled, :sort_enabled, :highlight_enabled, :analysis_scheme) SENSITIVE = [] include Aws::Structure end |
#default_value ⇒ String
A value to use for the field if the field isn’t specified for a document.
1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 |
# File 'lib/aws-sdk-cloudsearch/types.rb', line 1947 class TextOptions < Struct.new( :default_value, :source_field, :return_enabled, :sort_enabled, :highlight_enabled, :analysis_scheme) SENSITIVE = [] include Aws::Structure end |
#highlight_enabled ⇒ Boolean
Whether highlights can be returned for the field.
1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 |
# File 'lib/aws-sdk-cloudsearch/types.rb', line 1947 class TextOptions < Struct.new( :default_value, :source_field, :return_enabled, :sort_enabled, :highlight_enabled, :analysis_scheme) SENSITIVE = [] include Aws::Structure end |
#return_enabled ⇒ Boolean
Whether the contents of the field can be returned in the search results.
1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 |
# File 'lib/aws-sdk-cloudsearch/types.rb', line 1947 class TextOptions < Struct.new( :default_value, :source_field, :return_enabled, :sort_enabled, :highlight_enabled, :analysis_scheme) SENSITIVE = [] include Aws::Structure end |
#sort_enabled ⇒ Boolean
Whether the field can be used to sort the search results.
1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 |
# File 'lib/aws-sdk-cloudsearch/types.rb', line 1947 class TextOptions < Struct.new( :default_value, :source_field, :return_enabled, :sort_enabled, :highlight_enabled, :analysis_scheme) SENSITIVE = [] include Aws::Structure end |
#source_field ⇒ String
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field’s name defines a pattern that begins or ends with a wildcard. Any document fields that don’t map to a regular index field but do match a dynamic field’s pattern are configured with the dynamic field’s indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name ‘score` is reserved and cannot be used as a field name. To reference a document’s ID, you can use the name ‘_id`.
1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 |
# File 'lib/aws-sdk-cloudsearch/types.rb', line 1947 class TextOptions < Struct.new( :default_value, :source_field, :return_enabled, :sort_enabled, :highlight_enabled, :analysis_scheme) SENSITIVE = [] include Aws::Structure end |