I am using Solar: 7.0.1 on: localhost:8983/solr/global
I am using SolrNET 0.8.1 with the following code example:
using SolrNet;
using Microsoft.Practices.ServiceLocation;
Startup.Init<SOLRModel>("http://localhost:8983/solr/global");
var solr = ServiceLocator.Current.GetInstance<ISolrOperations<SOLRModel>>();
var results = solr.Query(new SolrQuery("*:*&wt=xml")); // Throws Error Here.
I am getting an error:
Data at the root level is invalid. Line 1, position 1.
I am using default schema, have also tried the techproducts example, get the same error.
I can navigate to: http://localhost:8983/solr/global/select?q=: and I get the normal JSON Response.
Using the &wt=xml
gives me well formatted XML Response:
<?xml version="1.0" encoding="UTF-8" ?>
- <response>
- <lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">0</int>
- <lst name="params">
<str name="q">*:*</str>
<str name="wt">xml</str>
</lst>
</lst>
<result name="response" numFound="0" start="0" />
</response>
Please can someone tell me where I might look to solve this error.