title: Why does the Tika facade choose EmptyParser?
body: <p>I'm using the Tika facade, per the example of the <a href="https://github.com/elasticsearch/elasticsearch-mapper-attachments/blob/208c76e45e5104f9d03825a23a68b5e4af5694bc/src/main/java/org/elasticsearch/index/mapper/attachment/AttachmentMapper.java#L461" rel="nofollow">elasticsearch-mappper-attachment plugin</a>. Here's my test code:</p>
  
  <pre><code>Tika tika = new Tika();                                                                                                                                                                                 
  Metadata md = new Metadata();
  
  try {                                                                                                                                                                                                   
      String content = tika.parseToString(src, md, 100000);
  
      System.out.println("Content length: " + content.length());  
  
      for (String s: md.names()) {                                                                                                                                                                        
          System.out.println(s + ": " + md.get(s));                                                                                                                                                       
      }                                                                                                                                                                                                   
  }                                                                                                                                                                                                       
  catch (TikaException e) {                                                                                                                                                                               
      System.out.println(e);                                                                                                                                                                              
  } 
  </code></pre>
  
  <p>Here's the output:</p>
  
  <pre><code>Content length: 0
  X-Parsed-By: org.apache.tika.parser.EmptyParser
  Content-Type: text/html
  </code></pre>
  
  <p>So the question is: if Tika correctly identifies the input as <code>text/html</code>, why does it use the <code>EmptyParser</code>? If I'm supposed to pass a parser, which parser should I pass for best results, assuming that autodetection is successful, as above.</p>
  
  <p>Thank you.</p>