Hi *, I'd like to see how many documents I have in my index with a certain ListId, in this example ListId 881.
http://localhost:8983/solr/select?indent=on&version=2.2&q=*&fq=ListId%3A881&start=0&rows=0&fl=*%2Cscore&qt=standard&wt=standard In the browser, the output looks perfect, I indeed have 3 matching documents in the index: <response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">4097</int> <lst name="params"> <str name="fl">*,score</str> <str name="indent">on</str> <str name="start">0</str> <str name="q">*</str> <str name="qt">standard</str> <str name="wt">standard</str> <str name="fq">ListId:881</str> <str name="version">2.2</str> <str name="rows">0</str> </lst> </lst> <result name="response" numFound="3" start="0" maxScore="1.0"/> </response> However, when I'm trying this very URL with curl within my (perl) script, I receive a NullPointerException: CURL-COMMAND: curl -sL http://localhost:8983/solr/select?indent=on&version=2.2&q=*&fq=ListId%3A881&start=0&rows=0&fl=*%2Cscore&qt=standard&wt=standard <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <title>Error 500 </title> </head> <body><h2>HTTP ERROR: 500</h2><pre>null java.lang.NullPointerException at java.io.StringReader.<init>(StringReader.java:33) at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:197) ... Grateful for any kind of help. cheers - MOPS