[ https://issues.apache.org/jira/browse/CAMEL-13071?focusedWorklogId=186199&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-186199 ]
ASF GitHub Bot logged work on CAMEL-13071: ------------------------------------------ Author: ASF GitHub Bot Created on: 17/Jan/19 07:35 Start Date: 17/Jan/19 07:35 Worklog Time Spent: 10m Work Description: oscerd commented on pull request #2710: CAMEL-13071: camel-elasticsearch-rest - Add scroll api support URL: https://github.com/apache/camel/pull/2710 ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 186199) Time Spent: 20m (was: 10m) > 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 > Assignee: Andrea Cosentino > Priority: Minor > Time Spent: 20m > Remaining Estimate: 0h > > On some projects 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)