Re: IndexSearcher and Caches

2010-05-25 Thread Rahul R
Chris, I am using SolrIndexSearcher to get a handle to the total number of records in the index. I am doing it like this : int num = Integer.parseInt((String)solrSearcher.getStatistics().get(numDocs).toString()); Please let me know if there is a better way to do this. Mark, I can tell you what I

Re: IndexSearcher and Caches

2010-05-25 Thread Lance Norskog
The stats.jsp page walks the internal JMX beans. It prints out the numbers of documents among other things. I would look at how that works instead of writing your own thing for the internal APIs. They may have changed from Solr 1.3 to 1.4 and will change further for 1.5 (4.0 is the new name?).

Re: IndexSearcher and Caches

2010-05-24 Thread Rahul R
the same cached filter-object, retrived from Solr's internal cache (of course you need to have a cache-size that allows cacheing). The solr wiki states that the caches are per IndexSearcher object i.e if I set my filterCache size to 1000 it means that 1000 entries can be assigned for every

Re: IndexSearcher and Caches

2010-05-24 Thread MitchK
.n3.nabble.com/IndexSearcher-and-Caches-tp833567p840228.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: IndexSearcher and Caches

2010-05-24 Thread Rahul R
this message in context: http://lucene.472066.n3.nabble.com/IndexSearcher-and-Caches-tp833567p840228.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: IndexSearcher and Caches

2010-05-24 Thread MitchK
.nabble.com/IndexSearcher-and-Caches-tp833567p840479.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: IndexSearcher and Caches

2010-05-24 Thread Chris Hostetter
: Thank you I found the API to get the existing SolrIndexSearcher to be : present in SolrCore: : SolrCore.getSearcher().get() I think perhaps you need to take 5 big steps back and explain what your goal is. 99.999% of all solr users should never care about that method -- even the 99.9% of

Re: IndexSearcher and Caches

2010-05-23 Thread Rahul R
Mitch, Thank you for your response. A few follow up questions for clarification : That means one IndexSearcher + its caches got a lifetime of one commit. In my case, I have an index which will not be modified after creation. Does this mean that in a multi-user scenario, I can have a static

Re: IndexSearcher and Caches

2010-05-23 Thread MitchK
you need to have a cache-size that allows cacheing). The solr wiki states that the caches are per IndexSearcher object i.e if I set my filterCache size to 1000 it means that 1000 entries can be assigned for every IndexSearcher object. Yes. If a new searcher is created than the new Cache

IndexSearcher and Caches

2010-05-21 Thread Rahul R
Hello all, I have a few questions w.r.t the caches and the IndexSearcher available in solr. I am using solr 1.3. - The solr wiki states that the caches are per IndexSearcher object i.e if I set my filterCache size to 1000 it means that 1000 entries can be assigned for every IndexSearcher object

Re: IndexSearcher and Caches

2010-05-21 Thread MitchK
Rahul, the IndexSearcher of Solr gets shared with every request within two commits. That means one IndexSearcher + its caches got a lifetime of one commit. After every commit, there will be a new one created. The cache does not mean, that they are applied automatically. They mean, that a filter