{
  "schema_version": 2,
  "id": "commands/ft.aliasadd",
  "title": "FT.ALIASADD",
  "url": "https://redis.io/docs/latest/commands/ft.aliasadd/",
  "summary": "Adds an alias to the index",
  "since": "1.0.0",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-09-18T09:47:58+01:00",
  "page_type": "content",
  "content_hash": "0a6376a2ff71b272102f9fafb8922681f1fbde69c7bad6f94066795b5b946008",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Add an alias to an index\n\n[Examples](#examples)"
    },
    {
      "id": "required-arguments",
      "title": "Required arguments",
      "role": "content",
      "text": "<details open>\n<summary><code>alias index</code></summary>\n\nis alias to be added to an index.\n</details>\n\nIndexes can have more than one alias, but an alias cannot refer to another\nalias.\n\nFT.ALIASADD allows administrators to transparently redirect application queries to alternative indexes."
    },
    {
      "id": "examples",
      "title": "Examples",
      "role": "example",
      "text": "<details open>\n<summary><b>Add an alias to an index</b></summary>\n\nAdd an alias to an index.\n\n\n127.0.0.1:6379> FT.ALIASADD alias idx\nOK\n\n\nAttempting to add the same alias returns a message that the alias already exists.\n\n\n127.0.0.1:6379> FT.ALIASADD alias idx\n(error) Alias already exists\n\n</details>"
    },
    {
      "id": "redis-software-and-redis-cloud-compatibility",
      "title": "Redis Software and Redis Cloud compatibility",
      "role": "content",
      "text": "| Redis<br />Software | Redis Cloud<br />Flexible & Annual | Redis Cloud<br />Free & Fixed | <span style=\"min-width: 9em; display: table-cell\">Notes</span> |\n|:----------------------|:-----------------|:-----------------|:------|\n| <span title=\"Supported\">&#x2705; Supported</span> | <span title=\"Supported\">&#x2705; Supported</span> | <span title=\"Supported\">&#x2705; Supported</nobr></span> |  |"
    },
    {
      "id": "return-information",
      "title": "Return information",
      "role": "returns",
      "text": "**RESP2:**\n\nOne of the following:\n* [Simple string reply](https://redis.io/docs/latest/develop/reference/protocol-spec#simple-strings): `OK` if executed correctly.\n* [Simple error reply](https://redis.io/docs/latest/develop/reference/protocol-spec#simple-errors) in these cases: alias already exists, index does not exist.\n\n**RESP3:**\n\nOne of the following:\n* [Simple string reply](https://redis.io/docs/latest/develop/reference/protocol-spec#simple-strings): `OK` if executed correctly.\n* [Simple error reply](https://redis.io/docs/latest/develop/reference/protocol-spec#simple-errors) in these cases: alias already exists, index does not exist."
    },
    {
      "id": "see-also",
      "title": "See also",
      "role": "related",
      "text": "[`FT.ALIASDEL`](https://redis.io/docs/latest/commands/ft.aliasdel) | [`FT.ALIASUPDATE`](https://redis.io/docs/latest/commands/ft.aliasupdate)"
    }
  ],
  "examples": []
}
