# Passing from in suggest queries

**URL:** https://discuss.elastic.co/t/passing-from-in-suggest-queries/239461
**Category:** Elasticsearch
**Created:** [July 1, 2020, 10:45am UTC](https://discuss.elastic.co/t/passing-from-in-suggest-queries/239461 "2020-07-01T10:45:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![guruprasadkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guruprasadkk/32/66271_2.png) [@guruprasadkk](https://discuss.elastic.co/u/guruprasadkk)
#### Post date: [July 1, 2020, 10:45am UTC](https://discuss.elastic.co/t/passing-from-in-suggest-queries/239461/1 "2020-07-01T10:45:38Z")

</div>

We are using from and size in normal searches to support pagination for our clients.  
But we also have to support size and from for typeahead queries.

For supporting typeahead queries we are using CompletionSuggestionBuilder and SuggestBuilder  
We are able to set the number of rows we want by specifying the rows in size param  
but along with number of results our clients also need capability to specify from also. so that they can paginate.

But I did not get any way to do it?  
How to set the from value in suggesters?

---

<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 29, 2020, 10:45am UTC](https://discuss.elastic.co/t/passing-from-in-suggest-queries/239461/2 "2020-07-29T10:45:44Z")

</div>

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