there is actually an interesting trick here using facet.query (which would only
entail a single filter cache entry):
http://127.0.0.1:/solr/collection1/select?q={!tag=main}country:Spain&facet=on&facet.query={!ex=main
key=total}*:*
[my test data has a country field]
Using facet tagging/excl
Why not have your app query admin/stats and cache the numDocs variable
and just add it to each page you display? That way you'd only
have to call the stats component once.
Well, actually, you'd have to periodically call it to catch index updates,
but you'd cut down the number of queries.
Although
Cheers Kuli,
This is actually of huge importance to our customers, to see how many
documents we store.
The faceting option sounds a bit messy, maybe we'll have to stick with
2 queries.
---
IntelCompute
Web Design & Local Online Marketing
http://www.intelcompute.com
On Fri, 28 Oct 2011 11:43:
Am 28.10.2011 11:16, schrieb Robert Brown:
> Is there no way to return the total number of docs as part of a search?
No, it isn't. Usually this information is of absolutely no value to the
end user.
A workaround would be to add some field to the schema that has the same
value for every document,
Currently I'm making 2 calls to Solr to be able to state "matched 20
out of 200 documents".
Is there no way to return the total number of docs as part of a
search?
--
IntelCompute
Web Design & Local Online Marketing
http://www.intelcompute.com