: Can I know why?  I thought solr is tuned for string if no sorting of facet by
: range query is needed.

"tuned for string" doesn't really mean anything to me, i'm not sure what 
that's in refrence to.  nothing thta i know of is particularly optimized 
for strings.  Almost anything can be indexed/stored/represented as a 
string (in some form ot another) and that tends to work fine in solr, but 
some things are optimized for other more specialized datatypes.

the reason i suggested that using ints might (marginally) be better is 
because of the FieldCache and the fieldValueCache -- the int 
representation uses less memory then if it was holding strings 
representing hte same ints.

worrying about that is really a premature optimization though -- model 
your data in the way that makes the most sense -- if your ids are 
inherently ints, model them as ints until you come up with a reason to 
model them otherwise and move on to the next problem.


-Hoss

Reply via email to