# Topic ID as a variable?

**URL:** <https://meta.discourse.org/t/topic-id-as-a-variable/374168>\
**Category:** Development\
**Created:** [July 14, 2025, 6:48pm UTC](https://meta.discourse.org/t/topic-id-as-a-variable/374168 "2025-07-14T18:48:32Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**Post date:** [September 27, 2025, 3:01am UTC](https://meta.discourse.org/t/topic-id-as-a-variable/374168/23 "2025-09-27T03:01:01Z")

</div>

> [@tknospdr](#):
>
> A common word is the opposite of what I want. I don’t want my search results to have EVERY ticket, I want a way to search for a specific ticket. That’s why topic ID would be ideal. They are automatically generated and unique.

You misunderstand me. I meant having a common word _including_ the `topic:id` parameter, so that only results _from that topic_ show up. The common word removes the need to change words like ‘hi’ and ‘hello’.

---

_[View the full topic](https://meta.discourse.org/t/topic-id-as-a-variable/374168)._
