/** * 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:

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.

* @type {any} * @memberof SynonymSet */ definition: any | null; /** * Synapse employs an Optimistic Concurrency Control (OCC) scheme. * @type {string} * @memberof SynonymSet */ etag?: string; /** * The date this resource was created. * @type {string} * @memberof SynonymSet */ createdOn?: string; /** * The ID of the user that created this resource. * @type {string} * @memberof SynonymSet */ createdBy?: string; /** * The date this resource was last modified. * @type {string} * @memberof SynonymSet */ modifiedOn?: string; /** * The ID of the user that last modified this resource. * @type {string} * @memberof SynonymSet */ modifiedBy?: string; } /** * Check if a given object implements the SynonymSet interface. */ export declare function instanceOfSynonymSet(value: object): value is SynonymSet; export declare function SynonymSetFromJSON(json: any): SynonymSet; export declare function SynonymSetFromJSONTyped(json: any, ignoreDiscriminator: boolean): SynonymSet; export declare function SynonymSetToJSON(json: any): SynonymSet; export declare function SynonymSetToJSONTyped(value?: SynonymSet | null, ignoreDiscriminator?: boolean): any;