REST Resource: projects.locations.synonymSets

Resource: SynonymSet

Represents a list of synonyms for a given context. For example a context "sales" could contain: Synonym 1: sale, invoice, bill, order Synonym 2: money, credit, finance, payment Synonym 3: shipping, freight, transport Each SynonymSets should be disjoint

JSON representation
{
  "name": string,
  "context": string,
  "synonyms": [
    {
      object (Synonym)
    }
  ]
}
Fields
name

string

The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{projectNumber}/locations/{location}/synonymSets/{context}.

context

string

This is a freeform field. Example contexts can be "sales," "engineering," "real estate," "accounting," etc. The context can be supplied during search requests.

synonyms[]

object (Synonym)

List of Synonyms for the context.

Synonym

Represents a list of words given by the customer All these words are synonyms of each other.

JSON representation
{
  "words": [
    string
  ]
}
Fields
words[]

string

For example: sale, invoice, bill, order

Methods

create

Creates a SynonymSet for a single context.

delete

Deletes a SynonymSet for a given context.

get

Gets a SynonymSet for a particular context.

list

Returns all SynonymSets (for all contexts) for the specified location.

patch

Remove the existing SynonymSet for the context and replaces it with a new one.