title: search query in elasticsearch with url in field
body: <p>I have to search a file location path in the indexed data of an elastic search. I indexed the location path in an encoded format(tried without encoding also). The below query returns all the indexed data without doing any match. If I search with <strong>id</strong> or <strong>title</strong> field, it returns correct result.Do anyone have any idea? </p>
  
  <pre><code>{
  "query": {
       "match": {
       "location": "%5c%5c25.94.150.212%5cfoldername%5cintroduction_to_c_sharp.ppt"
      }
  }
  }
  </code></pre>
  
  <p>Response I got from browser <a href="http://localhost:9200/documents" rel="nofollow">http://localhost:9200/documents</a></p>
  
  <pre><code>{
    "documents": {
      "aliases": {},
      "mappings": {
        "indexdocument": {
          "properties": {
            "document": {
              "type": "attachment",
              "fields": {
                "content": {
                  "type": "string"
                },
                "author": {
                  "type": "string"
                },
                "title": {
                  "type": "string",
                  "term_vector": "with_positions_offsets"
                },
                "name": {
                  "type": "string"
                },
                "date": {
                  "type": "date",
                  "format": "strict_date_optional_time||epoch_millis"
                },
                "keywords": {
                  "type": "string"
                },
                "content_type": {
                  "type": "string"
                },
                "content_length": {
                  "type": "integer"
                },
                "language": {
                  "type": "string"
                }
              }
            },
            "documentType": {
              "type": "string"
            },
            "id": {
              "type": "long"
            },
            "lastModifiedDate": {
              "type": "date",
              "format": "strict_date_optional_time||epoch_millis"
            },
            "location": {
              "type": "string"
            },
            "title": {
              "type": "string"
            }
          }
        }
      },
      "settings": {
        "index": {
          "creation_date": "1465193502636",
          "number_of_shards": "5",
          "number_of_replicas": "1",
          "uuid": "5kCRvhmsQAGyndkswLhLrg",
          "version": {
            "created": "2030399"
          }
        }
      },
      "warmers": {}
    }
  }
  </code></pre>
  
  <p>Create Index code which is having one field attachment:</p>
  
  <pre><code>        public void CreateDocumentIndex()
             {
                 this.client.CreateIndex("documents", c =&gt;  c.Mappings(mp=&gt;mp.Map&lt;IndexDocument&gt;
                     (m =&gt; m.Properties(ps =&gt; ps.Attachment
                                         (a =&gt; a.Name(o =&gt; o.Document)
                                               .TitleField(t =&gt; t.Name(x =&gt;     x.Title).TermVector(TermVectorOption.WithPositionsOffsets))
                                                )))));
    }
  </code></pre>
  
  <p>Properties to index</p>
  
  <pre><code> public class IndexDocument
     {
      public long Id { get; set; }
      public string Title { get; set; }
      public string DocumentName { get; set; }
      // Base64-encoded file content.
      public string Document { get; set; }
      public string DocumentType { get; set; }
      [Nest.String(Store = true, Index = Nest.FieldIndexOption.NotAnalyzed)]
      public string Location { get; set; }        
      public DateTime LastModifiedDate { get; set; }
  
   }
  </code></pre>