Re: how to disable the field cache

2012-09-18 Thread Jack Krupansky
Could you suggest the code for a "mock field cache"? I mean, what would an anonymous instance look like. -- Jack Krupansky -Original Message- From: karsten-s...@gmx.de Sent: Tuesday, September 18, 2012 9:07 AM To: java-user@lucene.apache.org Subject: Re: how to disable the field cache

Re: how to disable the field cache

2012-09-18 Thread karsten-solr
Hi 惠达 王, if you do not sort (by field values) and do not use faceted search or joins the field cache will not be used. If you want to go sure: Write a MockFieldCache and call FieldCache.DEFAULT = new MockFieldCache(); Best regards Karsten btw. the are other objects in the main-memory like do