Hi, The general contract is that only the original Index input needs to be closed. Slices and clones don't need a close, they are just views on the original input.
All clones or slices always have a noop close method? So it won't hurt to call close. Uwe Am 29. März 2025 01:23:26 MEZ schrieb "기준" <0ctopus13pr...@gmail.com>: >Hi all, hope you are doing great. > >Wondering what is the contract of `close` of sliced IndexInput? >Could not find any related documents wrt this. > >I find many places in Lucene do not close sliced IndexInput, and when >cleaning resources, it just close origin IndexInput. > >Would appreciate it if someone could help clarify the contract. >Fundamental question is that can we skip calling `close` a sliced >IndexInput?? > >Thank you -- Uwe Schindler Achterdiek 19, 28357 Bremen https://www.thetaphi.de