The parser must get registered in the service registry (META-INF/services/org.apache.tika.parser.Parser). Just being in the classpath does not work.
> -----Original Message----- > From: Lance Norskog [mailto:goks...@gmail.com] > Sent: Freitag, 8. Juni 2012 22:38 > To: solr-user@lucene.apache.org > Subject: Re: Adding Custom-Parser to Tika > > Solr will find libs in top-level directory solr/lib (next to solr.xml) > or a lib/ directory inside each core directory. You can put your new > parser in a jar file in one of those places. Like this: > > solr/ > solr/solr.xml > solr/lib > solr/lib/yourjar.jar > solr/collection1 > solr/collection1/conf > solr/collection1/lib > solr/collection1/lib/yourjar.jar > > On Fri, Jun 8, 2012 at 12:35 PM, <spr...@gmx.eu> wrote: > > Hi, > > > > I have written a new parser for tika. The problem is, that > I have to edit > > org.apache.tika.parser.Parser in the tika.jar. But I do not > want to edit the > > jar. Is the another way to register the new parser? It must > work with a > > plain AutoDetectParser, since this is used in oder Parsers > directly (e.g. > > RFC822Parser). > > > > Thank you. > > > > > > -- > Lance Norskog > goks...@gmail.com >