Robert Muir
added a comment - 19/Jul/10 22:22 attached is a quick prototype.
I kept the old representation working via Version. if you use >= 4.0, it just encodes to byte.
I figure this has enough violations that Uwe will jump in and help

Robert Muir
added a comment - 20/Jul/10 13:36 Updated patch, with javadocs, and attributefactory violations corrected.
I think this patch is ready, but we should probably fix a few things (TermRangeQuery, QueryParser should consume with BytesRef not string) first.