Migrating SolrNet MVC2 Application to MVC3

别来无恙 提交于 2019-12-25 03:59:06

问题


The sample application for SolrNET search is in MVC 2. I tried to convert it into MVC 3 application. The search is working perfectly, by connecting to my own solr instance. But the faceting is not getting displayed.

private static readonly string[] AllFacetFields = new[] { "Dataaccess", "AccessMethod", "Datacreator", "Dataset", "Geographicalarea"};

And when the I sort the search results according to the best match, price and random, I get the link like,

http://localhost:2086/?sort=price

But, what should I do, if I want to change the "price" to something else. I have been working on SolrNet only for the last few days and I'm stuck with the faceting.


回答1:


The question title says "Migrating SolrNet MVC2 Application to MVC3" but the real problem of the OP was about implementing multifaceting. The SolrNet sample app doesn't currently implement multifaceting, but SolrNet itself does. The OP wanted a sample app with multifaceting for free. See the comments for more information.



来源:https://stackoverflow.com/questions/6980240/migrating-solrnet-mvc2-application-to-mvc3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!