Class: Google::Cloud::Retail::V2::Rule::OnewaySynonymsAction
- Inherits:
-
Object
- Object
- Google::Cloud::Retail::V2::Rule::OnewaySynonymsAction
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/retail/v2/common.rb
Overview
Maps a set of terms to a set of synonyms.
Set of synonyms will be treated as synonyms of each query term only.
query_terms
will not be treated as synonyms of each other.
Example: "sneakers" will use a synonym of "shoes".
"shoes" will not use a synonym of "sneakers".
Instance Attribute Summary collapse
-
#oneway_terms ⇒ ::Array<::String>
Will be [deprecated = true] post migration;.
-
#query_terms ⇒ ::Array<::String>
Terms from the search query.
-
#synonyms ⇒ ::Array<::String>
Defines a set of synonyms.
Instance Attribute Details
#oneway_terms ⇒ ::Array<::String>
Returns Will be [deprecated = true] post migration;.
252 253 254 255 |
# File 'proto_docs/google/cloud/retail/v2/common.rb', line 252 class OnewaySynonymsAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#query_terms ⇒ ::Array<::String>
Returns Terms from the search query. Will treat synonyms as their synonyms. Not themselves synonyms of the synonyms. Can specify up to 100 terms.
252 253 254 255 |
# File 'proto_docs/google/cloud/retail/v2/common.rb', line 252 class OnewaySynonymsAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#synonyms ⇒ ::Array<::String>
Returns Defines a set of synonyms. Cannot contain duplicates. Can specify up to 100 synonyms.
252 253 254 255 |
# File 'proto_docs/google/cloud/retail/v2/common.rb', line 252 class OnewaySynonymsAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |