我在角度应用程序的顶部栏上有一个搜索文本框。 跟随之类的东西。
用户可以键入一些关键字并跨应用程序搜索。 用户将获得具有某些描述的链接列表。
我可以在客户端和服务器端实现它。 我在客户端使用angular ,在服务器端使用.net 。
任何人都可以建议我使用一些框架来实现这些吗? 它可以是客户端或服务器端。
我可以从头开始实现它,这不是问题。 但首先我想通过已有的解决方案。
请建议。
I have one search text box on top bar of my angular application. Something like following.
User can type some keyword and search across application. User will have list of links with some description.
I can implement it at client side as well as at server side. I am using angular at client side and .net at server side.
Can anyone suggest me some framework available to implement these? It can be client side or server side.
I can implement it from scratch, that is not an issue. But first I want to go through solution already available.
Please suggest.
最满意答案
这取决于很多事情:
如果您搜索的内容很少,您可以选择完整的客户端解决方案,但这通常不是一个好主意
如果您需要全文搜索,并且至少需要基本的语义功能(确保“树”与“树”相匹配),您应该真正了解Elasticsearch,它非常易于设置,并且具有非常好的.NET绑定(寻找“NEST”)
如果你想对关键词进行模糊建议(例如与文档相关的标签)并愿意为你付费处理服务,我可以建议Algolia( http://www.algolia.com )这是一个搜索和建议的SaaS如果您处于企业环境而非高流量网站,那么价格应该非常合理。 我们正在将它用于该用例,我们对它非常满意。
It depends on many things:
if you have very little content to search in, you may opt for a full client-side solution, but that's usually not a very good idea
if you need full-text search, and at least basic semantic features (make sure e.g. "trees" matches "tree"), you should really have a look at Elasticsearch which is pretty easy to setup, and has very good .NET bindings (look for "NEST")
if you want fuzzy suggest on keywords (e.g. tags associated on documents) and are open to paying a service to handle it for you, I can suggest Algolia (http://www.algolia.com) which is a SaaS for search and suggest and should be very reasonably priced if you are in an enterprise environment and not a high-traffic website. We are using it for that use case and we are extremely happy with it.
更多推荐
发布评论