/** * Synapse REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** *
A shareable OpenSearch synonym_graph (or legacy synonym) token filter. SynonymSets belong to an Organization; the qualified name {organizationName}-{name} is what a TextAnalyzer references via {"$ref": "{organizationName}-{name}"} inside its settings.filter registry map to bring this filter into the analyzer.
Example — OpenSearch native synonym syntax: a, b, c for equivalent (bidirectional) and a, b => c, d for explicit (directional) expansion. The definition field is a JSON object — paste OpenSearch examples directly without escaping:
{
* "organizationName": "biomed",
* "name": "medical_terms",
* "definition": {
* "type": "synonym_graph",
* "synonyms": [
* "tumor, neoplasm, cancer",
* "AD => Alzheimer's disease"
* ]
* }
* }Tuning suggestions:
synonym_graph (it handles phrases correctly)."expand":false in the definition."lenient":true in the definition.Cannot be deleted while any persisted resource references it. See the OpenSearch synonym_graph filter docs for the full parameter list (synonyms, format, expand, lenient, etc.).
* @export * @interface SynonymSet */ export interface SynonymSet { /** * The unique ID of this synonym set. * @type {string} * @memberof SynonymSet */ id?: string; /** * The name of the Organization this resource belongs to. Immutable after creation. * @type {string} * @memberof SynonymSet */ organizationName?: string; /** * The resource name. Must start with a letter and contain only letters, digits, and underscores. Unique within the organization and immutable after creation. Used as part of the qualified name ({organizationName}-{name}) when referenced by other resources. * @type {string} * @memberof SynonymSet */ name?: string; /** * Optional description of the synonym set. * @type {string} * @memberof SynonymSet */ description?: string; /** *Required. The full OpenSearch token filter definition as a JSON object, exactly as documented for the synonym_graph / synonym token filters. Synapse parses this to confirm it's valid JSON and otherwise passes it through to AOSS verbatim. AOSS Serverless does not support file-based parameters — use inline synonyms; AOSS rejects synonyms_path at index-build time.