Well, I wouldn't store it as a string in the first place. Otherwise, you're right, you have to store it as an entity that compares lexicographically, usually by left-padding with zeroes.
But don't do that if at all possible, it's much more expensive than storing ints or longs, so can you re-index these as one of the Trie* types? Best Erick On Sat, Nov 19, 2011 at 3:35 AM, neuron005 <neuron...@gmail.com> wrote: > But sir > fileSize is of type string, how will it compare? > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Can-files-be-faceted-based-on-their-size-tp3518393p3520569.html > Sent from the Solr - User mailing list archive at Nabble.com. >