asp.netsolrquery-stringsolrnetasp.net-routing

SolrNet: How can I use SolrNet with ending up with a long URL?


I am very happy with SolrNet but at times the querystring becomes too long e.g. http://localhost:2136/li.aspx?k=vitamin&f=categories&fValue=Minerals&s=name (searching for vitamins, then clicked on Minerals in the category facet and opted to sort results by name)

So my question is, is there a better way to query solr (via SolrNet) without making the URL this long (and ugly). Concretely, is there another way to query solr then doing a response.redirect every time a different facet is clicked?

Thanks!


Solution

  • This isn't really about SolrNet or Solr, since they don't dictate anything about your web application's URLs.

    Assuming you're using ASP.NET (WebForms or MVC), take a look at routing to customize your URLs to be nicer.