title: Elastic Search Term Query Not Matching URL's
body: <p>I am a beginner with Elastic search and I am working on a POC from last week. 
  I am having a URL field as a part of my document which contains URL's in the following format :"<a href="http://www.example.com/foo/navestelre-04-cop" rel="nofollow">http://www.example.com/foo/navestelre-04-cop</a>".</p>
  
  <p>I can not define mapping to my whole object as every object has different keys except the URL.</p>
  
  <p>Here is how I am creating my Index : </p>
  
  <pre><code>POST 
  {
      "settings" : {
          "number_of_shards" : 5,
      "mappings" : {
              "properties" : {
                  "url" : { "type" : "string","index":"not_analyzed" }
              }
      }
  }
  }
  </code></pre>
  
  <p>I am keeping my URL field as not_analyzed as I have learned from some resource that marking a field as not_analyzed will prevent it from tokenization and thus I can look for an exact match for that field in a term query.</p>
  
  <p>I have also tried using the whitespace analyzer as the URL value thus not have any of the white space character. But again I am unable to get a successful Hit.</p>
  
  <p>Below is my term query : </p>
  
  <pre><code>{
  "query":{
      "constant_score": {
         "filter": {
         "term": {
            "url":"http://www.example.com/foo/navestelre-04-cop"
         }
         }
      }
  }
  </code></pre>
  
  <p>}  </p>
  
  <p>I am guessing the problem is somewhere with the Analyzers and Tokenizers but I am unable to get to a solution. Any kind of help would be great to enhance my knowledge and would help me reach to a solution.
  Thanks in Advance.</p>