Re: Why two TermAndBoost classes

2023-05-02 Thread Alessandro Benedetti
Adding to cc Daniele who worked on this quite recently! Cheers On Tue, 2 May 2023, 21:12 Gus Heck, wrote: > Was fishing around in parsers in solr and discovered that we have two > different term and boost classes in Lucene. Is this really desirable? They > are quite similar except one

Why two TermAndBoost classes

2023-05-02 Thread Gus Heck
Was fishing around in parsers in solr and discovered that we have two different term and boost classes in Lucene. Is this really desirable? They are quite similar except one implements a notion of equality, and doesn't copy the BytesRef when created whereas the other relies on object equality and