Retail V2 API - Class Google::Cloud::Retail::V2::Rule::DoNotAssociateAction (v0.11.0)

Stay organized with collections Save and categorize content based on your preferences.

Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::Rule::DoNotAssociateAction.

Prevents query_term from being associated with specified terms during search. Example: Don't associate "gShoe" and "cheap".

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#do_not_associate_terms

def do_not_associate_terms() -> ::Array<::String>
Returns
  • (::Array<::String>) — Cannot contain duplicates or the query term. Can specify up to 100 terms.

#do_not_associate_terms=

def do_not_associate_terms=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Cannot contain duplicates or the query term. Can specify up to 100 terms.
Returns
  • (::Array<::String>) — Cannot contain duplicates or the query term. Can specify up to 100 terms.

#query_terms

def query_terms() -> ::Array<::String>
Returns
  • (::Array<::String>) — Terms from the search query. Will not consider do_not_associate_terms for search if in search query. Can specify up to 100 terms.

#query_terms=

def query_terms=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Terms from the search query. Will not consider do_not_associate_terms for search if in search query. Can specify up to 100 terms.
Returns
  • (::Array<::String>) — Terms from the search query. Will not consider do_not_associate_terms for search if in search query. Can specify up to 100 terms.

#terms

def terms() -> ::Array<::String>
Returns
  • (::Array<::String>) — Will be [deprecated = true] post migration;

#terms=

def terms=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Will be [deprecated = true] post migration;
Returns
  • (::Array<::String>) — Will be [deprecated = true] post migration;