Correct use case of String parameter in SetQuery function of SolrQuery?
问题 I have q queryString = "select?wt=json&rows=0&indent=true&facet=true&q=*:*&facet=true&facet.field=outcome_type" If queried like : http://x.x.x.x:8983/solr/abc/queryString it works. here abc is a core. Now I would like to execute it programmatically, and using the following approach : SolrQuery query = new SolrQuery(); query.setQuery(queryString); QueryResponse resp = server.query(query); here queryString as defined above, but it return the following error : Exception in thread "main" org