# Is there a limit for the creation of analytical tags?

**URL:** <https://discuss.elastic.co/t/is-there-a-limit-for-the-creation-of-analytical-tags/326151>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [February 22, 2023, 9:51am UTC](https://discuss.elastic.co/t/is-there-a-limit-for-the-creation-of-analytical-tags/326151 "2023-02-22T09:51:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerardo\_Zenobi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gerardo_zenobi/32/106790_2.png) [@Gerardo\_Zenobi](https://discuss.elastic.co/u/Gerardo_Zenobi)\
**Post date:** [February 22, 2023, 9:51am UTC](https://discuss.elastic.co/t/is-there-a-limit-for-the-creation-of-analytical-tags/326151/1 "2023-02-22T09:51:49Z")

</div>

Hi there 👋

We are planning to implement _search history_ for our users using the [Analytics API](https://www.elastic.co/guide/en/app-search/current/queries.html) as shown in this [example](https://www.elastic.co/blog/personalizing-elastic-app-search-with-results-based-on-search-history).

Given search queries will be tagged then by user, for example like so `user:unique_id`, and that we have millions of users and growing, the question we had was:

- is there a limit to the number of tags that can be stored/managed in EAS ?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![ioana.tagirta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ioana.tagirta/32/46368_2.png) [@ioana.tagirta](https://discuss.elastic.co/u/ioana.tagirta)\
**Post date:** [February 22, 2023, 4:50pm UTC](https://discuss.elastic.co/t/is-there-a-limit-for-the-creation-of-analytical-tags/326151/2 "2023-02-22T16:50:05Z")

</div>

Hello,

You should be able to use tags this way.  
It should not be a problem at search time, the analytics.tags can contain random string values.  
The Search API should act just the same as if the analytics.tags only contain values from a very strict/limited set of values. The analytics.tags values have no effect for the Search or Click APIs.  
The only problem might be that you might hit some limitations of the Analytics page for that engine.  
For example the Analytics page has a tag filter which will show a limited number of tags.  
You should still be able to use Analytics API to query the analytics events and filter them by tags.

Depending on the Elasticsearch cluster size and how long you intend to keep the search history, you might be interested in the log retention settings: [Log retention | Elastic Enterprise Search documentation [8.6] | Elastic](https://www.elastic.co/guide/en/enterprise-search/8.6/log-retention.html).

---

<div class="post-metadata">

**Author:** ![Gerardo\_Zenobi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gerardo_zenobi/32/106790_2.png) [@Gerardo\_Zenobi](https://discuss.elastic.co/u/Gerardo_Zenobi)\
**Post date:** [March 16, 2023, 9:13am UTC](https://discuss.elastic.co/t/is-there-a-limit-for-the-creation-of-analytical-tags/326151/3 "2023-03-16T09:13:57Z")

</div>

Thanks for the response @ioana.tagirta

> For example the Analytics page has a tag filter which will show a limited number of tags.

Good to know. Can't we search/filter through the tags even it not shown initially ?

Is this a limitation of the analytics' dashboard today that it is going to be worked on in the near feature?

> You should be able to use tags this way

To double confirm: no issues in creating "unlimited" (a.k.a millions) number of tags, correct ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 13, 2023, 9:14am UTC](https://discuss.elastic.co/t/is-there-a-limit-for-the-creation-of-analytical-tags/326151/4 "2023-04-13T09:14:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
