lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl <>
Subject Re: Custom content extractor for Solr Cell
Date Wed, 28 Dec 2011 00:17:43 GMT
Hi John,

See discussion about the issue of indexing contents of ZIP files:

Depending on your use case, you may be able to write a Tika parser which handles your specific
case, such as uncompressing a GZIP file and using AutoDetect on its contents or similar. If
you want to override the behaviour of Tika's parsing of certain MIME types, you can do this
by specifying -Dtika.config=<path-to-your-tika-config> when starting Solr (3.5 or later),
and it will obey your config. See Tika's web page for how to write your own parsers.

Jan Høydahl, search solution architect
Cominvent AS -
Solr Training -

On 5. des. 2011, at 22:02, John Bartak wrote:

> Is it possible to extract content for file types that Tika doesn’t support
> without changing and rebuilding Tika?  Do I need to specify a tika.config
> file in the solrconfig.xml file, and if so, what is the format of that file?
> One example that I’m trying to solve is for a document management system
> where the files are compressed – so I’d like to have a content extractor
> that first decompresses the file and then delegates to the standard Solr
> content extraction mechanism.   Perhaps writing a custom extractor is more
> trouble than it is worth for this use case and I should just decompress the
> data before sending it to Solr?

View raw message