如何构建我的应用程序搜索机制? [英] How do I build a search mechanism for my application?
问题描述
这似乎是时下常见的需求有一个搜索功能,可以搜索几乎任何你想要的。谁能给我的样品或秘诀,如何去建立一个一站式的搜索应用程序?
It seems to be a common requirement nowadays to have a search feature that can search almost anything you want. Can anyone give me samples or tips as to how to go about building a one stop search for an application?
例如:你有3个表客户,产品,员工。该应用程序有一个具有在右上角的文本框非常相似,你有什么计算器母版页。
For example: you have 3 tables customers, products, employees. The application has a master page that has a textbox at the right hand corner very similar to what you have on stackoverflow.
我如何有一个搜索地说词说,凤凰,并有类似的结果。
How do I have a search say for term say "Phoenix" and have results like
客户
Result 1
......
产品
Result 1
......
员工
Result 1
......
任何提示,教程和提示将是非常美联社preciated。我的环境是WIN2K3,.NET3.5,C#,ASP.net。
Any tips, tutorials and hints would be really appreciated. My environment is Win2k3,.net3.5,C#,ASP.net.
编辑:在性能和可伸缩性专门看
Looking specifically at performance and scalability.
在此先感谢!
推荐答案
Lucene.NET 是一个非常快速的全文搜索引擎。
Lucene.NET is an extremely fast full text search engine.
使用范例:
请参阅来源$ C $ C的: //www.dotnetkicks.com/相对=nofollow> DotNetKicks 的从<起始href=\"http://$c$c.google.com/p/dotnetkicks/source/browse/trunk/DotNetKicks/Incremental.Kick.Web.UI/Pages/Story/Search.aspx.cs\"相对=nofollow>搜索页面codebehind
See Source code of DotNetKicks starting from codebehind of search page
这篇关于如何构建我的应用程序搜索机制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!