# Elastic4s scala API and scroll search

**URL:** https://discuss.elastic.co/t/elastic4s-scala-api-and-scroll-search/21295
**Category:** Elasticsearch
**Created:** [December 17, 2014, 12:34pm UTC](https://discuss.elastic.co/t/elastic4s-scala-api-and-scroll-search/21295 "2014-12-17T12:34:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ramdev\_Wudali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramdev_wudali/32/7894_2.png) [@Ramdev\_Wudali](https://discuss.elastic.co/u/Ramdev_Wudali)
#### Post date: [December 17, 2014, 12:34pm UTC](https://discuss.elastic.co/t/elastic4s-scala-api-and-scroll-search/21295/1 "2014-12-17T12:34:39Z")

</div>

Hi:  
I have been using the elastic4s Scala API quite succesfully. However, I  
just ran into an issue that is puzzling:

My Situation:  
I set up a ElasticClient using a single node from the ES cluster (a  
Cluster of 2 nodes). I am able to scroll through the search results to get  
all my search results.  
However, if I set up my client with multiple nodes, the scroll search  
returns only the first page of search results. My question is there  
something that prevents a scroll search from scrolling through  
the search results ? Can this be resolved somehow ? ( Scoring is not  
important, in case it is a factor)

sample code:

search in "index/type" limit 100 query {  
ids(docIds)  
} scroll ("5m")

Case that works :

client:ElasticClient = ElasticClient.remote(setttings, ("host1",9200))

Case that does not work :

client:ElasticClient =  
ElasticClient.remote(settings,("host1",9200),("host2",9200))

any/all help is appreciated.

Thanks

Ramdev

--  
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/1bdfc63e-c912-4e3f-83fb-29729ad93763%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1bdfc63e-c912-4e3f-83fb-29729ad93763%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:43am UTC](https://discuss.elastic.co/t/elastic4s-scala-api-and-scroll-search/21295/2 "2017-07-06T00:43:16Z")

</div>


