开发者

OpenSearch .net (C#) library: which one?

开发者 https://www.devze.com 2022-12-16 21:58 出处:网络
i would like to add OpenSearch to my C# webapplication. does someone recommend a certain .net library? or does a custom webapplication require a tailormade opensearch implementati开发者_如何学编程on?T

i would like to add OpenSearch to my C# webapplication. does someone recommend a certain .net library? or does a custom webapplication require a tailormade opensearch implementati开发者_如何学编程on?


That might help: http://blog.unto.net/opensearch/add-opensearch-to-your-site-in-five-minutes/


If you want while-you-type suggestions, you need to have a search method on the server that searches and returns the results in JSON (not XML) format. If you don't need suggestions, you just need a method that responds to the search in a normal way by pushing HTML to the browser.

Have a look at Mozilla's official documentation for creating an opensearch plugin for your site and supporting search suggestions


I suggest OpenSearch.Net (an open source fork of elasticsearch-net). Have a look into the git repo for getting started

https://github.com/opensearch-project/opensearch-net

0

精彩评论

暂无评论...
验证码 换一张
取 消