diff --git a/tika/src/main/java/fr/pilato/elasticsearch/crawler/fs/tika/TikaInstance.java b/tika/src/main/java/fr/pilato/elasticsearch/crawler/fs/tika/TikaInstance.java
index <HASH>..<HASH> 100644
--- a/tika/src/main/java/fr/pilato/elasticsearch/crawler/fs/tika/TikaInstance.java
+++ b/tika/src/main/java/fr/pilato/elasticsearch/crawler/fs/tika/TikaInstance.java
@@ -93,14 +93,13 @@ public class TikaInstance {
                     logger.debug("But Tesseract is not installed so we won't run OCR.");
                     pdfParser.setOcrStrategy("no_ocr");
                 }
-                defaultParser = new DefaultParser();
+                defaultParser = new DefaultParser(
+                        MediaTypeRegistry.getDefaultRegistry(),
+                        new ServiceLoader(),
+                        Collections.singletonList(PDFParser.class));
             }
 
-            Parser PARSERS[] = new Parser[2];
-            PARSERS[0] = defaultParser;
-            PARSERS[1] = pdfParser;
-
-            parser = new AutoDetectParser(PARSERS);
+            parser = new AutoDetectParser(defaultParser, pdfParser);
         }
 
     }
Exclude the PDFParser from the DefaultParser

After [a discussion](<URL>) with @tballison, I realized that I did not exclude the PDFParser from the DefaultParser while I'm using a custom AutoDetectParser which is using the DefaultParser and the PDFParser.

This change removes the PDFParser from the DefaultParser.