I'm trying to debug a application that is using SolrNet to query Solr. I'm trying to figure out what url that actually gets requested from SolrNet so that I can debug it more easilly in a web browser.
There is a question on the SolrNet Google Group - Get Raw Solr Query that provides a couple of ways to get this output.
Just to save you the effort of heading out to the forum :
var serializer = ServiceLocator.Current.GetInstance<ISolrQuerySerializer>();
queries = new List<ISolrQuery>
{
new SolrQueryByField("category_facet", "Fjärrin"),
new SolrQueryByField("branch_facet", sigel),
new SolrQueryByField("isArchived", "false"),
SolrQuery.All
};
var q = new SolrMultipleCriteriaQuery(queries,"AND");
var queryRaw = serializer.Serialize(q);
Debug.WriteLine(queryRaw);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With