Hi all,
I'm playing with the SolrNet sample app and wanted to get access to the raw solr http for debugging and learning.
In the controller we have
public ISolrQuery BuildQuery(SearchParameters parameters) {
if (!string.IsNullOrEmpty(parameters.FreeSearch))
return new SolrQuery(parameters.FreeSearch);
return SolrQuery.All;
}
I spotted
http://stackoverflow.com/questions/801847/getting-solrquery-full-query-string so I figured BuildQuery(myparams).ToString() would do the trick but it returns the Type name.
Ideally i'd like access to the full solr query i.e. to include the paging, rows, sorting etc.
var matchingProductions = solr.Query(BuildQuery(parameters), new QueryOptions {});
but there doesn't seem to be anyway of combining the Query(ISolrQuery, QueryOptions) without actually executing the query - and the result doesn't have any properties that look like a raw query.
Thanks in advance
SeanR