On Sat, 1 Aug 2015, Nick Burch wrote:
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
Actually, you might be able to do that, but I just couldn't find any unit
tests
Try with
<?xml version="1.0" encoding="UTF-8"?>
<properties>
<detectors>
<detector class="org.apache.tika.detector.DefaultDetector"/>
<detector class="my.custom.detector"/>
</detectors>
</properties>