Skip to content

Commit 05b8859

Browse files
committed
Restore off-heap loading for term dictionary in ReadOnlyEngine
This is a partial restore of elastic#43158, following decision taken in elastic#51247
1 parent 221b005 commit 05b8859

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/index/engine/ReadOnlyEngine.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ public class ReadOnlyEngine extends Engine {
6565

6666
/**
6767
* Reader attributes used for read only engines. These attributes prevent loading term dictionaries on-heap even if the field is an
68-
* ID field if we are reading form memory maps.
68+
* ID field.
6969
*/
7070
private static final Map<String, String> OFF_HEAP_READER_ATTRIBUTES = Collections.singletonMap(BlockTreeTermsReader.FST_MODE_KEY,
71-
BlockTreeTermsReader.FSTLoadMode.AUTO.name());
71+
BlockTreeTermsReader.FSTLoadMode.OFF_HEAP.name());
7272
private final SegmentInfos lastCommittedSegmentInfos;
7373
private final SeqNoStats seqNoStats;
7474
private final ElasticsearchReaderManager readerManager;

0 commit comments

Comments
 (0)