当我尝试运行以下ES查询时,出现错误:
查询:
curl http://localhost:9200/test1/_search -H 'Content-Type: application/json' -d'
{
"size": 500
"query": {
"bool": {
"must": {},
"filter": {
{
"multi_match": {
"type": "best_fields",
"query": "10.9.5.8 10.9.0.7 10.9.5.5 10.9.2.3 10.9.2.1",
"lenient": true
}
}
}
}
}
}
我得到的错误是:
{"error":{"root_cause":[{"type":"json_parse_exception","reason":"Unexpected character ('\"' (code 34)): was expecting comma to separate Object entries\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@3667826c; line: 4, column: 6]"}],"type":"json_parse_exception","reason":"Unexpected character ('\"' (code 34)): was expecting comma to separate Object entries\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@3667826c; line: 4, column: 6]"},"status":500}