跨应用程序实施搜索(Implement search across application)

编程入门 行业动态 更新时间:2024-10-21 04:15:59
应用程序实施搜索(Implement search across application)

我在角度应用程序的顶部栏上有一个搜索文本框。 跟随之类的东西。

用户可以键入一些关键字并跨应用程序搜索。 用户将获得具有某些描述的链接列表。

我可以在客户端和服务器端实现它。 我在客户端使用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.

更多推荐

本文发布于:2023-08-06 18:22:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1454086.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   Implement   application   search

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!