This is primarily to Andy Lester, who wrote the WebService::Solr module
on CPAN, but I'll take a response from anyone who knows what I can do.
If I use the following Perl code, I get an error. If I try to build
some other query besides *:* to request all documents, the script runs,
but the query doesn't do what I asked it to do.
http://apaste.info/3j3Q
How can I use a perl script with a proper Solr API to count the number
of documents in my Solr index?
I already have a version of my script that parses a JSON response as
plain text, but as I have just learned, it's possible to get invalid
information out of it. Specifically, the shards.info output has
multiple numFound instances in it, which broke my script. The
shards.info parameter is in the request handler defaults. I'd like to
future-proof it by using actual objects.
Thanks,
Shawn