# Completion Suggester limit documents

**URL:** <https://discuss.elastic.co/t/completion-suggester-limit-documents/92314>\
**Category:** Elasticsearch\
**Created:** [July 7, 2017, 6:28pm UTC](https://discuss.elastic.co/t/completion-suggester-limit-documents/92314 "2017-07-07T18:28:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pradeep\_Garimella](https://avatars.discourse-cdn.com/v4/letter/p/a3d4f5/32.png) [@Pradeep\_Garimella](https://discuss.elastic.co/u/Pradeep_Garimella)\
**Post date:** [July 7, 2017, 6:28pm UTC](https://discuss.elastic.co/t/completion-suggester-limit-documents/92314/1 "2017-07-07T18:28:45Z")

</div>

Is there a way to configure completion suggester to only match documents containing a specific field ?  
My document looks like this :-  
{  
"first\_name" : "jack",  
"last\_name" : "chan",  
"email" : "jack.chan@smartsheet.com",  
"org\_id" : 9001,  
"suggest" : {  
"input" : ["jack","chan","jack.chan@smartsheet.com"]  
}  
}

When a user types "ja" I want to be able to say "Get me all users starting with "ja" in org\_id 9001?".

I am aware of the context suggester / category context feature, and I am skeptical if it will scale in my situation due to high cardinality in organization\_id's. I expect to have 10-20 million users with 300k-400k unique org\_id's. So adding a category context on org\_id feels like the wrong way to go.

Can anyone suggest an alternative approach. Thanks

---

<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:** [August 4, 2017, 6:28pm UTC](https://discuss.elastic.co/t/completion-suggester-limit-documents/92314/2 "2017-08-04T18:28:53Z")

</div>

Closed on August 4, 2017, 6:28pm UTC

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