Re: FieldCache for Search

2007-07-28 Thread Erick Erickson
You might try lazy loading. See IndexReader.*document *(int n, FieldSelector fieldSelector), particularly the FieldSelector. It allows you to selectively load only the fields you want. Otherwise, I'm sure if you looked in the unit tests you'd find examples of how to use FieldCache. If your field

FieldCache for Search

2007-07-24 Thread Askar Zaidi
Hey Guys, >From what I understand, FieldCache is used to store only the field required for search. I am using a Document object and then using doc.get("item"). One of my fields is HUGE, so using Document will slow things down. How can I use FieldCache ? an example ? thanks, AZ