Hi, If you use it for document filtering queries or to filter deleted documents, then FixedBitSet is the best replacement. The size given in the constructor must be the value of LeafReader#maxDoc(), because that's the maximum document number that can be used and may be marked in the bitset for a given index segment.
Uwe ----- Uwe Schindler Achterdiek 19, D-28357 Bremen https://www.thetaphi.de eMail: u...@thetaphi.de > -----Original Message----- > From: Jyothsna Bavisetti <jyothsna.bavise...@oracle.com> > Sent: Wednesday, November 20, 2019 2:44 PM > To: dev@lucene.apache.org > Subject: Lucene Upgrade issues. > > Hi All, > > We are upgrading Lucene from 4.6 to 8.3. > Earlier we used Open bit, Now it is deprecated. We have two options in latest > version(FixedBitset or LongBitset). > Could you please let me know which is the best option to use. Is there any > points need to be consider while choosing one of them. If FixedBitSet what > is the minimum size we need to define for it. > > Please share some inputs. > > Thanks, > Jyothsna > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org > For additional commands, e-mail: dev-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org