title: Using URL as ID in ElasticSearch
body: <p>I'm using ElasticSearch 6.2.3 and I'm indexing documents with IDs being URLs. When I query the index:</p>
  
  <pre><code>GET /ecm_sync/_search
  {
    "query": {"match_all": {}}
  }
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>...
  "hits": [
        {
          "_index": "ecm_sync",
          "_type": "doc",
          "_id": "workspace://SpacesStore/07dfa82d-c6ce-469d-b881-4fab6cd9a277",
          "_score": 1,
  ...
  </code></pre>
  
  <p>Now, if I take this URL and try to GET it directly:</p>
  
  <pre><code>GET /ecm_sync/_doc/workspace%3A%2F%2FSpacesStore%2F07dfa82d-c6ce-469d-b881-4fab6cd9a277
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>{
    "_index": "ecm_sync",
    "_type": "_doc",
    "_id": "workspace://SpacesStore/07dfa82d-c6ce-469d-b881-4fab6cd9a277",
    "found": false
  }
  </code></pre>
  
  <p>The same thing happens both with Kibana and curl. I've seen there was an opened issue long time ago but it was closed so I don't know if I'm doing something wrong.</p>