Re: [Question] What is the `close` contract of sliced IndexInput?

2025-04-01 Thread Uwe Schindler
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 "

Re: [Question] What is the `close` contract of sliced IndexInput?

2025-04-01 Thread Uwe Schindler
Just to complement your statement: The default MMapDirectory uses MemorySegmentIndexInput. This one implements the close logic similar so Clones or slices cannot be closed: They do not get the Arena which controls lifetime of file mapping (it is null):

Reversing norms to the field length

2025-04-01 Thread David Smiley
A useful relevance "feature" is the number of terms in a field in a document. Basically the term length discounted for overlaps, or the total number of positions -- the position length. org.apache.lucene.search.similarities.Similarity#computeNorm receives this information, applies a Similarity-dep

Re: Proposing a 10.2.0 release

2025-04-01 Thread Tommaso Teofili
I'd like to get https://github.com/apache/lucene/pull/14094 in by tomorrow, unless anyone objects. On Mon, 31 Mar 2025 at 17:15, Robert Muir wrote: > i added some bullets for automaton/regex improvements. > > On Sun, Mar 30, 2025 at 9:47 AM Adrien Grand wrote: > > > > I would like to highlight