我正在使用ElasticSearch 6.2.3并且我正在索引ID为URL的文档。当我查询索引时:
GET /ecm_sync/_search
{
"query": {"match_all": {}}
}
我明白了:
...
"hits": [
{
"_index": "ecm_sync",
"_type": "doc",
"_id": "workspace://SpacesStore/07dfa82d-c6ce-469d-b881-4fab6cd9a277",
"_score": 1,
...
现在,如果我使用此URL并尝试直接获取它:
GET /ecm_sync/_doc/workspace%3A%2F%2FSpacesStore%2F07dfa82d-c6ce-469d-b881-4fab6cd9a277
我明白了:
{
"_index": "ecm_sync",
"_type": "_doc",
"_id": "workspace://SpacesStore/07dfa82d-c6ce-469d-b881-4fab6cd9a277",
"found": false
}
同样的事情发生在Kibana和curl上。我已经看到很久以前有一个已经打开过的问题,但它已经关闭了所以我不知道我做错了什么。