Chris Hostetter wrote:
this can be accomplished by indexing a numeric field containing the "length" of the field as a number, and then doing a secondary sort on it. the fieldNorm typically takes care of this sort of thing for you, but is more of a generalized concept, and doesn't give you exact precision for small numbersOr see https://issues.apache.org/jira/browse/LUCENE-1360 if you don't want to index a field length.
-Sean