didi / didi/KnowStreaming

进行ES查询时,如果资源名称存在特殊字符,会导致查询失败

Open
#914 0 comments 0 reactions 0 assignees View on GitHub
dev: project-manager status: discussion-required
Dominant language
Java
Stars
7.2k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

如题,具体如下图所示:

![image](https://user-images.githubusercontent.com/4694454/218695992-84fe9dc0-f222-4037-8717-325bc79356d4.png)

```json
{
"size": 0,
"query": {
"bool": {
"must": [{
"term": {
"clusterPhyId": {
"value": 1251
}
}
}, {
"term": {
"connectClusterId": {
"value": 11201
}
}
}, {
"term": {
"connectorName": {
"value": "AI-test_6[}"
" } } }, { "
range ": { "
timestamp ": { "
gte ": 1676366220150, "
lte ": 1676366820150 } } } ] } }, "
aggs ": { "
hist ": { "
date_histogram ": { "
field ": "
timestamp ", "
fixed_interval ": "
1 m ", "
time_zone ": "
Asia / Shanghai ", "
min_doc_count ": 0 }, "
aggs ": { "
TotalRecordErrors ":{"
avg ":{"
field ":"
metrics.TotalRecordErrors "}} } } }}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.