Abstract lucene version parameters to a Constants.VERSION field
Use BinaryDocValues rather than SortedDocValues to store queries

SDV is useful if you're likely to have multiple entries with the same query, but
that's not the case here.  Plus, SDV has a hard limit on length of 32767 bytes,
while BDV's limit is Integer.MAX_VALUE - 15.