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
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?).
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
.n3.nabble.com/IndexSearcher-and-Caches-tp833567p840228.html
Sent from the Solr - User mailing list archive at Nabble.com.
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.
.nabble.com/IndexSearcher-and-Caches-tp833567p840479.html
Sent from the Solr - User mailing list archive at Nabble.com.
: 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
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
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
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
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
11 matches
Mail list logo