here is a good post listing the details http://searchhub.org/2009/05/13/exploring-lucene-and-solrs-trierange-capabilities/ you can also read up Trie data structure on wikipedia.
You should almost always want to use the trieintField the default int field in solr is solr.TrieIntField On Sat, Jan 12, 2013 at 4:56 PM, jefferyyuan <yuanyun...@gmail.com> wrote: > Looked at Lucene Javadoc, seems we can run range query, filter, sorting on > IntField. > Also seems IntField is also indexed as trie structure. > Javadoc for IntField: > Within Lucene, each numeric value is indexed as a trie structure, where > each > term is logically assigned to larger and larger pre-defined brackets (which > are simply lower-precision representations of the value). > > Javadoc for TrieIntField: > Provides field types to support for Lucene's IntField, LongField, > FloatField > and DoubleField. > > So what is the difference between IntField and TrieIntField, which one we > should use, and how to choose it? > > Thanks very much for your help and reply :) > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Difference-between-IntField-and-TrieIntField-in-Lucene-4-0-tp4032938.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Anirudha P. Jadhav