Files
elasticsearch-js/docs/reference/api/SynonymsPutSynonymRuleRequest.md
2025-05-28 10:02:30 -05:00

11 lines
1011 B
Markdown

# `SynonymsPutSynonymRuleRequest` [interface-SynonymsPutSynonymRuleRequest]
| Name | Type | Description |
| - | - | - |
| `body` | string | ({ [key: string]: any; } & { set_id?: never; rule_id?: never; refresh?: never; synonyms?: never; }) | All values in `body` will be added to the request body. |
| `querystring` | { [key: string]: any; } & { set_id?: never; rule_id?: never; refresh?: never; synonyms?: never; } | All values in `querystring` will be added to the request querystring. |
| `refresh` | boolean | If `true`, the request will refresh the analyzers with the new synonym rule and wait for the new synonyms to be available before returning. If `false`, analyzers will not be reloaded with the new synonym rule |
| `rule_id` | [Id](./Id.md) | The ID of the synonym rule to be updated or created. |
| `set_id` | [Id](./Id.md) | The ID of the synonym set. |
| `synonyms` | [SynonymsSynonymString](./SynonymsSynonymString.md) | The synonym rule information definition, which must be in Solr format. |