On Fri, 31 Jul 2015, Mikhail Titov wrote:
Can I force my detectors declared in
META-INF/services/org.apache.tika.detect.Detector to go after standard
ones?

Nope, sorry

Using the service loader method, you're basically saying to Tika "make my life easy with the defaults"

If you need full control over the ordering, for now, you need to write some code something like:
   DefaultDetector d1 = new DefaultDetector();
   MyCustomDetector d2 = new MyCustomDetector();
   CompositeDetector detecter = new CompositeDetector(d1,d2);
Then use that composite detector everywhere

It seems you can't use the Tika Config xml to set it up like that, though you could for parsers, so I'll raise a JIRA for that

Nick

Reply via email to