# Context suggester large number of categories

**URL:** <https://discuss.elastic.co/t/context-suggester-large-number-of-categories/22013>\
**Category:** Elasticsearch\
**Created:** [February 6, 2015, 2:39pm UTC](https://discuss.elastic.co/t/context-suggester-large-number-of-categories/22013 "2015-02-06T14:39:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jilles\_van\_Gurp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jilles_van_gurp/32/879_2.png) [@Jilles\_van\_Gurp](https://discuss.elastic.co/u/Jilles_van_Gurp)\
**Post date:** [February 6, 2015, 2:39pm UTC](https://discuss.elastic.co/t/context-suggester-large-number-of-categories/22013/1 "2015-02-06T14:39:59Z")

</div>

I'm considering to use the context suggester to autocomplete some user  
specific categories. The idea here is that users can create their own tags  
and should see only suggestions for their own tags.

One solution is to use the complettion suggester with a context and use the  
userId as the category. However, I'm wondering how that scales with the  
number of users. Is there any guidance on using this solution with a large  
number of categories? The idea would be that I would have a large number of  
users with possibly thousands of unique suggestions each.

Is this the right solution or do I need to look at using e.g. edge n-grams  
with a term filter on the user\_id?

Jilles

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/35bb8ca0-218f-4632-b82b-bd8416499e19%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/35bb8ca0-218f-4632-b82b-bd8416499e19%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:34am UTC](https://discuss.elastic.co/t/context-suggester-large-number-of-categories/22013/2 "2017-07-06T00:34:30Z")

</div>


