Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这里(在表格末尾)关于在elastic4s中使用滚动的示例,但我看不到任何 API 来设置扫描参数。它是默认启用还是应该与一些钩子一起使用?
顺便一提
或者在elasticsearchscan中默认启用参数scrolling?
scan
scrolling
scan在进行初始搜索时设置参数,因此:
client.execute { search in "index" / "type" query <somequery> searchType SearchType.Scan scroll "1m" }
然后稍后
client.execute { search scroll <id> keepAlive "1m" }
(取自 elastic4s 的 1.5.x 版本)