You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/01/16 11:29:00 UTC

[jira] [Work logged] (CAMEL-13071) Elasticsearch rest component should support scroll api

     [ https://issues.apache.org/jira/browse/CAMEL-13071?focusedWorklogId=185696&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-185696 ]

ASF GitHub Bot logged work on CAMEL-13071:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 16/Jan/19 11:28
            Start Date: 16/Jan/19 11:28
    Worklog Time Spent: 10m 
      Work Description: ludovic-boutros commented on pull request #2710: CAMEL-13071: camel-elasticsearch-rest - Add scroll api support
URL: https://github.com/apache/camel/pull/2710
 
 
   Hi all,
   
   On some project we need to fetch all results from Elasticsearch.
   
   This is currently quite difficult.
   
   Here is an example of usage that could be implemented:
   ```java
   from("direct:search")
     .to("elasticsearch-rest://elasticsearch?operation=Search&indexName=twitter&indexType=tweet&useScroll=true&scrollKeepAliveMs=30000")
     .split()
     .body()
     .streaming()
     .to("mock:output")
     .end();
   ```
   
   Two new parameters could be used:
    * useScroll: enable scroll usage
    * scrollKeepAliveMs: time in ms during which elasticsearch will keep search context alive
   here is a proposal to implement Elasticsearch scroll API support.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 185696)
            Time Spent: 10m
    Remaining Estimate: 0h

> Elasticsearch rest component should support scroll api
> ------------------------------------------------------
>
>                 Key: CAMEL-13071
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13071
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-elasticsearch-rest
>    Affects Versions: 2.23.0
>            Reporter: Ludovic Boutros
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> On some project we need to fetch all results from Elasticsearch.
> This is currently quite difficult.
> Here is an example of usage that could be implemented:
> {code:java|title=ElasticsearchRouter.java|borderStyle=solid}
> from("direct:search")
>   .to("elasticsearch-rest://elasticsearch?operation=Search&indexName=twitter&indexType=tweet&useScroll=true&scrollKeepAliveMs=30000")
>   .split()
>   .body()
>   .streaming()
>   .to("mock:output")
>   .end();
> {code}
> Two new parameters could be used:
>  * useScroll: enable scroll usage
>  * scrollKeepAliveMs: time in ms during which elasticsearch will keep search context alive



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)