lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jay Hill <>
Subject Sort fields all look Strings in field cache, no matter schema type
Date Sat, 19 Dec 2009 19:25:45 GMT
I'm on a project where I'm trying to determine the size of the field cache.
We're seeing lots of memory problems, and I suspect that the field cache is
extremely large, but I'm trying to get exact counts on what's in the field

One thing that struck me as odd in the output of the stats.jsp page is that
the field cache always shows a String type for a field, even if it is not a
String. For example, the output below is for a field "cscore" that is a

entry#0 : 'org.apache.lucene.index.ReadOnlyDirectoryReader@6239da8a'=>'cscore',class$StringIndex,null=>$StringIndex#297347471

The index has 4,292,426 documents, so I would expect the field cache size
for this field to be:
cscore: double (8 bytes) x 4,292,426 docs = 34,339,408 bytes

But can someone explain why a double is using FieldCache$StringIndex please?
No matter what the type of the field is in the schema the field cache stats
always show FieldCache$StringIndex.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message