lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: [jira] Commented: (LUCENE-648) Allow changing of ZIP compression level for compressed fields
Date Fri, 11 Aug 2006 10:39:45 GMT

> I don't understand why the compressed fields are not just handled 
> externally in the Document class - just add uncompress/compress methods. 
> This way all Lucene needs to understand is binary fields, and you don't 
> have any of these problems during merging or initial indexing.

This is an excellent point.  Since these are just stored fields, why not 
have Lucene treat them as [opaque] binary fields so they are not touched 
during normal index operations.  And then only when a Document really 
needs to provide this value, it would decompress then?

Was there a counterbalance that justified having the compress logic 
inside the indexing code?

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message