Skip to content

ESQL: Load from stored fields with _source and doc values disabled #138019

@nik9000

Description

@nik9000

Description

I'm writing some docs for how to implement the blockLoader method and it looks like if you configuration a numeric like this:

"mappings": {
  "_source": { "enabled": false },
  "field": {
    "type": "long", <-- any numeric will do here
    "stored": true,
    "doc_values": false
  }
}

Then ESQL will not be able to load the field. But we have data on disk for the field. We just haven't plugged it in. If we turn off doc_values but have synthetic _source enabled we'll use the ignored-source loader mechanism. But this way doesn't work.

We just have so so many ways to configure things. We should probably support this, but it's a quite uncommon way to configure a field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions