I have configured my solrconfig.xml and schema.xml to query for the suggestions.
I am able to get the suggestions from the url
http://localhost:8080/
See http://wiki.apache.org/solr/SolrRequestHandler, particularly the section on the old handleSelect=true behavior. If you are running against a newer Solr server, this is most likely your problem. (i.e. setting "qt" has no effect and either the default handler in SolrNet must be changed or the Solr config needs to set handleSelect=true.) Here's how I solved this problem in my case:
ISolrConnection connection = ServiceLocator.Current.GetInstance();
List> termsParams = new List>();
termsParams.Add(new KeyValuePair("terms.fl", "name"));
termsParams.Add(new KeyValuePair("terms.prefix", mySearchString));
termsParams.Add(new KeyValuePair("terms.sort", "count"));
string xml = connection.Get("/terms", termsParams);
ISolrAbstractResponseParser parser = ServiceLocator.Current.GetInstance>();
SolrQueryResults results = new SolrQueryResults();
parser.Parse(System.Xml.Linq.XDocument.Parse(xml), results);
TermsResults termResults = results.Terms;
foreach (TermsResult result in termResults)
{
foreach (KeyValuePair kvp in result.Terms)
{
//... do something with keys
}
}
Basically I use the SolrNet parser and the connection code but not the query stuff. Hope this helps.