title: How do we stop analyzing tokens in elasticsearch?
body: <p>so I have a field like this in my elasticsearch index:</p>
  
  <pre><code>"filename": { "type": "text", "fielddata": true }
  </code></pre>
  
  <p>I am trying to use the Java API to query it like so:</p>
  
  <pre><code>client.prepareSearch(IMYINDEX).setQuery(query)
              .addDocValueField("filename")
  </code></pre>
  
  <p>However, the field comes back with this kind of situation:</p>
  
  <pre><code>"fields": { "filename": ["bob4322_35_223", "jpg"] }
  </code></pre>
  
  <p>I use <code>SearchHitField</code> to grab the object. Now I could loop through and recombine the tokens to be : <code>"bob4322_35_223.jpg"</code> </p>
  
  <p>However, then I am guessing the standard_analyzer is just removing the dot. </p>
  
  <p>I want the full keyword of it which I don't see in _mapping. </p>
  
  <p>I want the actual <code>"bob4322_35_223.jpg"</code>  ... It looks like standard_analyzer will get rid of "." and sometimes won't even properly analyze "-" (sometimes the array is missing parts of the dash e.g. <code>bob-45-joe-44-amy-12.jpg</code> becomes <code>[12, "jpg"]</code>)</p>
  
  <p>Is there a way to disable analyzer while making this query? I don't need it in tokenized version. How do you do this?</p>
  
  <p>I do not want to reingest the data as keyword or anything like that. I don't know if it would be efficient to pull in _sourceMap instead? </p>