>>I tried to >> sort by filePath field which can be 100 bytes at average meaning 400M >> RAM for the cache
YS> For string sorting, a FieldCache.StringIndex is used. YS> It contains a sorted String[num_unique_terms_in_field], and an int[maxDoc] YS> So if 10 documents share a large string field value, that value will YS> only be in the fieldCache once. YS> If you are just using an IndexSearcher (no multisearchers), then the YS> String[] isn't strictly needed... only the ordering (the int[]) is YS> needed from the StringIndex. One option is to create your own YS> FieldCache that doesn't create/store that String[]. The int[] array here contains references to String[] and to populate it still all the field values need to be loaded and compared/sorted which is what I want to avoid. I guess my option is not to use FieldCache at all. -- Best regards, Artem http://sharehound.sourceforge.net sharehound, the open source filesystems indexer --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]