You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (JIRA)" <ji...@apache.org> on 2019/01/17 10:48:00 UTC

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

     [ https://issues.apache.org/jira/browse/CAMEL-13071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrea Cosentino resolved CAMEL-13071.
--------------------------------------
    Resolution: Fixed

> 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
>             Fix For: 3.0.0, 2.24.0
>
>          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)