Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
IndexDiskUsageAnalyzer needs adjusting after apache/lucene#12741
  • Loading branch information
javanna committed Nov 7, 2023
1 parent da728c5 commit 4b014cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import org.apache.lucene.codecs.PointsReader;
import org.apache.lucene.codecs.StoredFieldsReader;
import org.apache.lucene.codecs.TermVectorsReader;
import org.apache.lucene.codecs.lucene90.Lucene90PostingsFormat;
import org.apache.lucene.codecs.lucene99.Lucene99PostingsFormat;
import org.apache.lucene.index.BinaryDocValues;
import org.apache.lucene.index.ByteVectorValues;
import org.apache.lucene.index.DirectoryReader;
Expand Down Expand Up @@ -301,7 +301,7 @@ private static void readProximity(Terms terms, PostingsEnum postings) throws IOE
private static BlockTermState getBlockTermState(TermsEnum termsEnum, BytesRef term) throws IOException {
if (term != null && termsEnum.seekExact(term)) {
final TermState termState = termsEnum.termState();
if (termState instanceof final Lucene90PostingsFormat.IntBlockTermState blockTermState) {
if (termState instanceof final Lucene99PostingsFormat.IntBlockTermState blockTermState) {
return new BlockTermState(blockTermState.docStartFP, blockTermState.posStartFP, blockTermState.payStartFP);
}
if (termState instanceof final Lucene84PostingsFormat.IntBlockTermState blockTermState) {
Expand Down

0 comments on commit 4b014cc

Please sign in to comment.