Python
import requests url = "https://{FUSION HOST}/api/collections/{collection}/synonyms/{path}/items" payload = { "id": "<string>", "mapping": "<string>", "category": "<string>", "enabled": True, "modified": "2023-11-07T05:31:56Z", "user": "<string>" } headers = {"Content-Type": "application/json"} response = requests.post(url, json=payload, headers=headers) print(response.text)
{ "id": "<string>", "mapping": "<string>", "category": "<string>", "enabled": true, "modified": "2023-11-07T05:31:56Z", "user": "<string>", "type": "EXPLICIT" }
Add one or more new entries to a synonyms file.
The Fusion user for authentication.
The name of a collection.
The path to a synonyms file.
If true, commit the change to Solr immediately instead of asynchronously.
JSON-formatted synonym entries.
successful operation
EXPLICIT
EQUIVALENT
Was this page helpful?