2

I am trying to migrate my es 2.2.1 with spring data elastic 2 to ES 5.6.1 with spring Data elastic 3 but when i am trying to use scan scroll method for large dataaset i am not able to access them, its look like ElasticsearchTemaplate class do not have these function any more in the newer version Can you please let me know what is the substitute of scan and scroll in SDA 3.x:-

ElasticsearchTemplate rep=null;

 String scrollId = rep.scan(searchQuery, (long)25000, false);
        //List<SampleEntity> sampleEntities = new ArrayList<SampleEntity>();
        boolean hasRecords = true;

1 Answer 1

1

You now can use startScroll method instead of scan() and scroll(). It's not presented in current docs.

Here are example ElasticsearchTemplate retrieve big data sets

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.