Is the `scan` option enabled while scrolling in elastic4?

Here's (at the end of the table) an example about using scrolls in elastic4s , but I don't see any API for setting scan . Is it enabled by default or should it be used with some hooks?

By the way

Or is the scan

parameter enabled by default during scrolling

elasticsearch?

+3


source to share


1 answer


On your initial search, you are setting a parameter scan

, so:

client.execute {
  search in "index" / "type" query <somequery> searchType SearchType.Scan scroll "1m"
}

      

Then later



client.execute {
  search scroll <id> keepAlive "1m"
}

      

(taken from the 1.5.x releases of elastic 4)

+4


source







All Articles