Skip to content

Add setting for lazily loading terms index offheap #38390

@jainankitk

Description

@jainankitk

Lucene is adding support for loading terms index offheap using mapped files. Elasticsearch should expose settings to specify list of fields that can be initialized offheap. That will prevent JVM OOM issues for many users by loading index for big fields like "_id" offheap. For example:

<index_name>/_settings --data
'{
"settings":{
"index.lazily_load_fst_fields_offheap": ["_id"]
}
}'

Is the best way to pass it though IndexWriterConfig to the underlying lucene DirectoryReader here? Does this setting needs to be passed from other places in the code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions