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?).
On
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
: 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
http://lucene.472066.n3.nabble.com/IndexSearcher-and-Caches-tp833567p840479.html
Sent from the Solr - User mailing list archive at Nabble.com.
ds,
> - Mitch
> --
> View 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.
>
.n3.nabble.com/IndexSearcher-and-Caches-tp833567p840228.html
Sent from the Solr - User mailing list archive at Nabble.com.
light into the dark.
> But from what I have understood it means the following:
>
> If you show 10 results per request and you think of up to 500 concurrent
> queries:
> 10 * 500 => 5000
>
> But I want to emphasize, that this is only a gues. I actually don't exactly
> know more about this topic.
>
> Kind regards
> - Mitch
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/IndexSearcher-and-Caches-tp833567p838367.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
ave understood it means the following:
If you show 10 results per request and you think of up to 500 concurrent
queries:
10 * 500 => 5000
But I want to emphasize, that this is only a gues. I actually don't exactly
know more about this topic.
Kind regards
- Mitch
--
View this message in context:
http://lucene.472066.n3.nabble.com/IndexSearcher-and-Caches-tp833567p838367.html
Sent from the Solr - User mailing list archive at Nabble.com.
is case it does not care for what the user is querying in his q-param.
>
> BTW: The IndexSearcher is threadsafe. So there is no problem with
> concurrent
> usage.
>
> Hope this helps???
>
> Kind regards
> - Mitch
> --
> View this message in context:
> http://luce
???
Kind regards
- Mitch
--
View this message in context:
http://lucene.472066.n3.nabble.com/IndexSearcher-and-Caches-tp833567p833841.html
Sent from the Solr - User mailing list archive at Nabble.com.
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. Is
11 matches
Mail list logo