5 years ago (
LUCENE-1458) we "enabled" fully binary terms in the
lowest levels of Lucene (the codec APIs) yet today, actually adding an
arbitrary byte binary term during indexing is far from simple: you
must make a custom Field with a custom TokenStream and a custom
TermToBytesRefAttribute, as far as I know.
This is supremely expert, I wonder if anyone out there has succeeded
in doing so?
I think we should make indexing a single byte as simple as indexing
a single String.