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
精彩评论