Es reports an error when executing aggregate query: alternately, set fielddata = true on
GET /megacorp/employee/_search
{
"aggs": {
"all_interests": {
"terms": { "field": "interests" }
}
}
}
Execute the following command to start fielddata
PUT /your_index_name/_mapping?pretty
{
"properties": {
"your_field_name": {
"type": "text",
"fielddata": true
}
}
}
Read More:
- Elasticsearch 6.2.3 version executes aggregation error Fielddata is disabled on text fields by default
- Springboot connects to the database error: testWhileIdle is true, validationQuery not set
- [Solved] Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead.
- How to Solve ES error: “illegal_argument_exception”
- RabbitMQ Configuration File Error: publisher-confirms=true [Solved]
- [Solved] MindSpore Error: `half_pixel_centers`=True only support in Ascend
- [Solved] Failed assertion: line 3180 pos 12: ‘debugNeedsPaint‘: is not true
- Resolve InsecurePlatformWarning: A true SSLContext object is not available.
- After configuring the ES password, logstash starts with error 401?
- [Solved] ES Query SIZE too large Error: ENTITY CONTENT IS TOO LONG [105539255] FOR THE CONFIGURED BUFFER LIMIT [104857600]
- Android 10 open file exception open failed: eacces (permission denied) android:requestLegacyExternalStorage= “true“
- Exception: logstash:: pluginloadingerror when importing MySQL data into es in Windows
- Gulp compression error: Error [ERR_REQUIRE_ESM]: Must use import to load ES Module…
- [Solved] Python Connect to ES Error: elasticsearch.ApiError: ApiError(406
- Webpack Pack and compress ES6 files with errors: ERROR in js/xxxxxx.js from UglifyJs Unexpected token punc ()
- Introduce wangeditor5 to run an error: You may need an appropriate loader to handle this file type (es6 compatibility issue)
- ES Startup error: ERROR: [2] bootstrap checks failed
- This limit can be set by changing the [search.max_open_scroll_context] setting
- [Solved] Data Set reproduct loam_velodyne Fully error: [multiscanregistration-1]