# Using scala elastic4s module for search an ES cluster

**URL:** <https://discuss.elastic.co/t/using-scala-elastic4s-module-for-search-an-es-cluster/21993>\
**Category:** Elasticsearch\
**Created:** [February 5, 2015, 1:22pm UTC](https://discuss.elastic.co/t/using-scala-elastic4s-module-for-search-an-es-cluster/21993 "2015-02-05T13:22:58Z")\
**Posts on this page:** 3\
**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:** [February 5, 2015, 1:22pm UTC](https://discuss.elastic.co/t/using-scala-elastic4s-module-for-search-an-es-cluster/21993/1 "2015-02-05T13:22:58Z")

</div>

Hi All:  
I have been using elastics4s module for searching and I have been using  
it with some amount of success. Its not been all successful because, I have  
one scenario where the API seems to fail.

case in point. :

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

Case that works : - I am able to scroll through the results and get all of  
the documents.

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

Case that does not work : - I get only the first page of results and  
scrolling does not work.

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

My Question about scrolling is does it work only when one node is used in  
the configuration or does it work when multiple nodes are specified in the  
configuration.

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/7c0abf3f-ced4-499a-95cc-6b975900c803%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7c0abf3f-ced4-499a-95cc-6b975900c803%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![sksamuel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sksamuel/32/682_2.png) [@sksamuel](https://discuss.elastic.co/u/sksamuel)\
**Post date:** [February 16, 2015, 5:52am UTC](https://discuss.elastic.co/t/using-scala-elastic4s-module-for-search-an-es-cluster/21993/2 "2015-02-16T05:52:43Z")

</div>

Interesting question. I can't find anything in the scroll docs that says it  
would be single node only, so I guess the next question is - does this work  
in the Java client for you? If so, raise a bug issue on  
[GitHub - sksamuel/elastic4s: Elasticsearch Scala Client - Reactive, Non Blocking, Type Safe, HTTP Client](http://github.com/sksamuel/elastic4s) if you can.

On Thursday, February 5, 2015 at 1:22:58 PM UTC, Ramdev Wudali wrote:

> Hi All:  
> I have been using elastics4s module for searching and I have been using  
> it with some amount of success. Its not been all successful because, I have  
> one scenario where the API seems to fail.
> 
> case in point. :
> 
> search in "index/type" limit 100 query {  
> ids(docIds)  
> } scroll ("5m")
> 
> Case that works : - I am able to scroll through the results and get all of  
> the documents.
> 
> client:ElasticClient = ElasticClient.remote(setttings, ("host1",9200))
> 
> Case that does not work : - I get only the first page of results and  
> scrolling does not work.
> 
> client:ElasticClient =  
> ElasticClient.remote(settings,("host1",9200),("host2",9200))
> 
> My Question about scrolling is does it work only when one node is used in  
> the configuration or does it work when multiple nodes are specified in the  
> configuration.
> 
> 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/27139e92-8254-4c2d-ab60-e4f22463d66b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/27139e92-8254-4c2d-ab60-e4f22463d66b%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:32am UTC](https://discuss.elastic.co/t/using-scala-elastic4s-module-for-search-an-es-cluster/21993/3 "2017-07-06T00:32:38Z")

</div>


