Re: Solr and FieldCache

2007-09-20 Thread Yonik Seeley
On 9/20/07, Walter Ferrara <[EMAIL PROTECTED]> wrote: > I have an index with several fields, but just one stored: ID (string, > unique). > I need to access that ID field for each of the tops "nodes" docs in my > results (this is done inside a handler I wrote), code looks like: > > Hits hits =

Re: Solr and FieldCache

2007-09-20 Thread Chris Hostetter
: Hits hits = searcher.search(query); : for(int i=0; i

Re: Solr and FieldCache

2007-09-20 Thread Yonik Seeley
On 9/20/07, Walter Ferrara <[EMAIL PROTECTED]> wrote: > I'm just wondering, as this cached object could be (theoretically) > pretty big, do I need to be aware of some OOM? I know that FieldCache > use weakmaps, so I presume the cached array for the older reader(s) will > be gc-ed when the reader is

Re: Solr and FieldCache

2007-09-20 Thread Walter Ferrara
About stored/index difference: ID is a string, (= solr.StrField) so FieldCache give me what I need. I'm just wondering, as this cached object could be (theoretically) pretty big, do I need to be aware of some OOM? I know that FieldCache use weakmaps, so I presume the cached array for the older rea

Re: Solr and FieldCache

2007-09-20 Thread J.J. Larrea
At 5:30 PM +0200 9/20/07, Walter Ferrara wrote: >I have an index with several fields, but just one stored: ID (string, >unique). >I need to access that ID field for each of the tops "nodes" docs in my >results (this is done inside a handler I wrote), code looks like: > > Hits hits = searcher.se

Solr and FieldCache

2007-09-20 Thread Walter Ferrara
I have an index with several fields, but just one stored: ID (string, unique). I need to access that ID field for each of the tops "nodes" docs in my results (this is done inside a handler I wrote), code looks like: Hits hits = searcher.search(query); for(int i=0; i