lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Norskog <>
Subject Re: Adding Custom-Parser to Tika
Date Sat, 09 Jun 2012 23:50:04 GMT
How do you add it to the classpath? And, is there an example somewhere
of how to package one of these external parsers?

If all else fails, the Tika code for loading external parsers is
available for viewing.

On Sat, Jun 9, 2012 at 3:00 AM,  <> wrote:
>> The doc is old. Tika hunts for parsers in the classpath now.
>> tion_12977072
> "Re: tika-config.xml vs. META-INF/services/...; The service provider
> mechanism [1] makes it easy to add custom parser implementations without
> having to maintain a separate copy of the full Tika configuration file. You
> could for example create a my-custom-parsers.jar file with a
> META-INF/services/o.a.tika.parser.Parser file that lists only your custom
> parser classes. When you add that jar to the classpath, Tika would then
> automatically pick up those parsers in addition to the standard parser
> classes from the tika-parsers jar."
> This was exactly what I tried, but it did not work.
> I'm using Tika 1.1

Lance Norskog

View raw message