Skip to content

elastcisearch and loopback4 #4179

@ScottYueqiang

Description

@ScottYueqiang

i get data from elastic, and the error happens:
Trace: [illegal_argument_exception] Fielddata is disabled on text fields by default. Set fielddata=true on [id] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.
at D:\lb4\es\node_modules\loopback-connector-es\lib\esConnector.js:869:19
at tryCallOne (D:\lb4\es\node_modules\promise\lib\core.js:37:12)
at D:\lb4\es\node_modules\promise\lib\core.js:123:15
at flush (D:\lb4\es\node_modules\asap\raw.js:50:29)
at processTicksAndRejections (internal/process/task_queues.js:75:11)

below are my model, datasource config and controller function:
image
image
image

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