lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: stored field compression
Date Fri, 14 May 2004 21:30:30 GMT
Dmitry Serebrennikov wrote:
> Actually, I was thinking of something simpler... Somthing like a special 
> case where one could supply binary data directly into a stored field. 
> Something like:
> public class Field {
>    public static Field Binary(String name, byte[] value);
>    public boolean isBinary();
>    public byte[] binaryValue();
> }
> This would automatically become a stored field. Lucene wouldn't need to 
> know what the data means - just carry it around. The binaryValue() can 
> return null unless isBinary() is true, in which case you'd get the data 
> back and stringValue() would return null instead.
> This would be a start. If we want to provide special handling for ints, 
> floats, and so on, we provide a BinaryField class, a la DateField.

Sounds like a good plan.  String-values remain as fast as they are, and 
binary values are no slower.  We can easily layer compression, etc. on 
top of this.

Are you volunteering?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message