Re: Adding Custom-Parser to Tika

2012-06-09 Thread Lance Norskog
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

RE: Adding Custom-Parser to Tika

2012-06-09 Thread spring
> The doc is old. Tika hunts for parsers in the classpath now. > > http://www.lucidimagination.com/search/link?url=https://issues > .apache.org/jira/browse/SOLR-2116?focusedCommentId=12977072#ac > tion_12977072 "Re: tika-config.xml vs. META-INF/services/...; The service provider mechanism [1] mak

Re: Adding Custom-Parser to Tika

2012-06-08 Thread Lance Norskog
The doc is old. Tika hunts for parsers in the classpath now. http://www.lucidimagination.com/search/link?url=https://issues.apache.org/jira/browse/SOLR-2116?focusedCommentId=12977072#action_12977072 On Fri, Jun 8, 2012 at 2:20 PM, Chris Hostetter wrote: > You canspecify a "tika.config" option po

RE: Adding Custom-Parser to Tika

2012-06-08 Thread Chris Hostetter
You canspecify a "tika.config" option pointing at your own tika-config.xml files that ExtractionRequestHandler will use to configure Tika with... http://wiki.apache.org/solr/ExtractingRequestHandler "The tika.config entry points to a file containing a Tika configuration. You would only need th

RE: Adding Custom-Parser to Tika

2012-06-08 Thread spring
o: 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/ >

Re: Adding Custom-Parser to Tika

2012-06-08 Thread Lance Norskog
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/collecti

Adding Custom-Parser to Tika

2012-06-08 Thread spring
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.