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

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 doc frequency

in context:
http://lucene.472066.n3.nabble.com/how-to-disable-the-field-cache-td4007384.html

-------- Original-Nachricht --------
Datum: Thu, 13 Sep 2012 15:34:08 +0800
Von: "惠达 王" <wanghuida...@yahoo.cn>
An: java-user@lucene.apache.org
Betreff: how to disable the field cache

Hi all

how to disable the field cache?


王惠达 (PHP开发工程师, Sysdev Team)
-------------------------
分机:8836
QQ:429335915
mobile: 13795449454
E-mail: williamw...@anjuke.com
上海市浦东新区陆家嘴环路166号未来资产大厦10楼



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to