title: Elasticsearch - how to search an URL?
body: <p>I have a problem when I store data like this into Elasticsearch (v 2.3, in AWS):</p>
  
  <pre><code>{
    data: {
      url: 'https://www.mydomain.tld',
      someOtherField: 'value',
    }
  }
  </code></pre>
  
  <p>index mapping:</p>
  
  <pre><code>{
    "mappings": {
      "nodes": {
        "properties": {
          "data": {
            "properties": {
              "url": {
                "type": "string",
                "index": "not_analyzed"
              }
             }
           }
         }
       }
     }
  }
  </code></pre>
  
  <p>I didn't find anyway, how can I search queries like:</p>
  
  <p><code>http:</code>, <code>https:</code>, <code>http://</code>, <code>https://</code>, and so on...</p>
  
  <p><strong>Long story short I need to search URLs, with protocol - an exact partial match.</strong>
  Because at least colon is a special mark, searching does not return relevant results, even is field not analysed.</p>
  
  <p>Can anyone help me, please?</p>