Jackie-Jiang commented on code in PR #11354: URL: https://github.com/apache/pinot/pull/11354#discussion_r1298132140
########## pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/index/TextIndexConfig.java: ########## @@ -99,6 +123,8 @@ public static abstract class AbstractBuilder { protected boolean _useANDForMultiTermQueries = true; protected List<String> _stopWordsInclude = new ArrayList<>(); protected List<String> _stopWordsExclude = new ArrayList<>(); + protected boolean _luceneUseCompoundFile = true; Review Comment: ```suggestion protected boolean _luceneUseCompoundFile = LUCENE_INDEX_DEFAULT_USE_COMPOUND_FILE; ``` ########## pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/index/TextIndexConfig.java: ########## @@ -32,15 +32,20 @@ public class TextIndexConfig extends IndexConfig { - public static final TextIndexConfig DISABLED = new TextIndexConfig(true, null, null, false, false, - Collections.emptyList(), Collections.emptyList()); + private static final int LUCENE_INDEX_DEFAULT_MAX_BUFFER_SIZE_MB = 500; Review Comment: Let's also add a constant for: ``` private static final int LUCENE_INDEX_DEFAULT_USE_COMPOUND_FILE = true; ``` ########## pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/index/TextIndexConfig.java: ########## @@ -50,14 +55,19 @@ public TextIndexConfig( @JsonProperty("queryCache") boolean enableQueryCache, @JsonProperty("useANDForMultiTermQueries") boolean useANDForMultiTermQueries, @JsonProperty("stopWordsInclude") List<String> stopWordsInclude, - @JsonProperty("stopWordsExclude") List<String> stopWordsExclude) { + @JsonProperty("stopWordsExclude") List<String> stopWordsExclude, + @JsonProperty("luceneUseCompoundFile") Boolean luceneUseCompoundFile, + @JsonProperty("luceneMaxBufferSizeMB") Integer luceneMaxBufferSizeMB) { super(disabled); _fstType = fstType; _rawValueForTextIndex = rawValueForTextIndex; _enableQueryCache = enableQueryCache; _useANDForMultiTermQueries = useANDForMultiTermQueries; _stopWordsInclude = stopWordsInclude; _stopWordsExclude = stopWordsExclude; + _luceneUseCompoundFile = luceneUseCompoundFile == null || luceneUseCompoundFile; // default to useCompoundFile Review Comment: ```suggestion _luceneUseCompoundFile = luceneUseCompoundFile == null ? LUCENE_INDEX_DEFAULT_USE_COMPOUND_FILE : luceneUseCompoundFile; ``` -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org