jpountz commented on code in PR #14634:
URL: https://github.com/apache/lucene/pull/14634#discussion_r2081686750


##########
lucene/codecs/src/java/org/apache/lucene/codecs/memory/FSTTermsReader.java:
##########
@@ -75,7 +76,8 @@ public FSTTermsReader(SegmentReadState state, 
PostingsReaderBase postingsReader)
 
     this.postingsReader = postingsReader;
     this.fstTermsInput =
-        state.directory.openInput(termsFileName, 
state.context.withHints(FileTypeHint.INDEX));
+        state.directory.openInput(
+            termsFileName, state.context.withHints(FileTypeHint.DATA, 
PreloadHint.INSTANCE));

Review Comment:
   I also changed the FileTypeHint to DATA since this FST effectively stores 
all the terms data.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to