diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-12-11 16:54:57 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-12-11 16:54:59 -0800 |
commit | 4c716f9e39046fde3e98a3686a5f086f3d53315a (patch) | |
tree | 28e09a2a701198939d6bf87e12594db657a1e39d /rust/src | |
parent | 7838a3c15a82281eec435ef16aad63e97015bdfc (diff) | |
download | fatcat-4c716f9e39046fde3e98a3686a5f086f3d53315a.tar.gz fatcat-4c716f9e39046fde3e98a3686a5f086f3d53315a.zip |
simplify ES scroll deletion using param()
This gets rid of some mess error handling code by properly configuring
the elasticsearch client to just not clean up scroll iterators when
accessing the public (prod or qa) search interfaces.
Leaving the scroll state around isn't ideal, so we still delete them if
possible (eg, connecting directly to elasticsearch).
Thanks to Martin for pointing out this solution in review.
Diffstat (limited to 'rust/src')
0 files changed, 0 insertions, 0 deletions