# Synonyms API: Synonyms set not updating

**URL:** <https://discuss.elastic.co/t/synonyms-api-synonyms-set-not-updating/366647>\
**Category:** Elasticsearch\
**Created:** [September 16, 2024, 8:22pm UTC](https://discuss.elastic.co/t/synonyms-api-synonyms-set-not-updating/366647 "2024-09-16T20:22:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SoleusRex](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@SoleusRex](https://discuss.elastic.co/u/SoleusRex)\
**Post date:** [September 16, 2024, 8:22pm UTC](https://discuss.elastic.co/t/synonyms-api-synonyms-set-not-updating/366647/1 "2024-09-16T20:22:25Z")

</div>

I've been trying to use the synonyms API, by way of a short `curl` script, to add to our synonyms set in Elastic Cloud. One thing I've found is that, when I go to the Dev Tools console to verify the updates, they don't seem to have entirely taken effect. For example, my set is named `base_synonyms_set`, and when I execute `GET /synonyms/base_synonyms_set` in the console, I get the output included below.

The strange thing is that the `count` is correct--I have attempted to add to our set for a total of 34 rules. But as you can see in the `synonyms_set` array, there are not 34 rules. Despite the updated count, the rules themselves appear unchanged.

```auto
{
  "count": 34,
  "synonyms_set": [
    {
      "id": "apartment",
      "synonyms": "apt, apartment"
    },
    {
      "id": "boulevard",
      "synonyms": "blvd, boulevard"
    },
    {
      "id": "building",
      "synonyms": "bldg, building"
    },
    {
      "id": "center",
      "synonyms": "ctr, center"
    },
    {
      "id": "court",
      "synonyms": "court, ct"
    },
    {
      "id": "drive",
      "synonyms": "dr, drive"
    },
    {
      "id": "east",
      "synonyms": "e, east"
    },
    {
      "id": "eighth",
      "synonyms": "eighth, 8th"
    },
    {
      "id": "fifth",
      "synonyms": "fifth, 5th"
    },
    {
      "id": "first",
      "synonyms": "first, 1st"
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![SoleusRex](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@SoleusRex](https://discuss.elastic.co/u/SoleusRex)\
**Post date:** [September 16, 2024, 8:23pm UTC](https://discuss.elastic.co/t/synonyms-api-synonyms-set-not-updating/366647/2 "2024-09-16T20:23:00Z")

</div>

Removed #elastic-cloud

---

<div class="post-metadata">

**Author:** ![SoleusRex](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@SoleusRex](https://discuss.elastic.co/u/SoleusRex)\
**Post date:** [September 16, 2024, 8:23pm UTC](https://discuss.elastic.co/t/synonyms-api-synonyms-set-not-updating/366647/3 "2024-09-16T20:23:11Z")

</div>

Removed #elastic-cloud

---

<div class="post-metadata">

**Author:** ![SoleusRex](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@SoleusRex](https://discuss.elastic.co/u/SoleusRex)\
**Post date:** [September 16, 2024, 8:24pm UTC](https://discuss.elastic.co/t/synonyms-api-synonyms-set-not-updating/366647/4 "2024-09-16T20:24:19Z")

</div>

Removed #elastic-cloud

---

<div class="post-metadata">

**Author:** ![SoleusRex](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@SoleusRex](https://discuss.elastic.co/u/SoleusRex)\
**Post date:** [September 16, 2024, 10:36pm UTC](https://discuss.elastic.co/t/synonyms-api-synonyms-set-not-updating/366647/5 "2024-09-16T22:36:35Z")

</div>

I'm an idiot. The default page size is 10, which is why only 10 results are shown. This question can be closed/removed.

---

<div class="post-metadata">

**Author:** ![Carlos\_D](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_d/32/126245_2.png) [@Carlos\_D](https://discuss.elastic.co/u/Carlos_D)\
**Post date:** [September 17, 2024, 7:36am UTC](https://discuss.elastic.co/t/synonyms-api-synonyms-set-not-updating/366647/6 "2024-09-17T07:36:38Z")

</div>

Glad you figured that out, @SoleusRex ! Thanks for sharing
