在ASP.NET的C#网站创建搜索引擎 [英] Create search engine for site in asp .net c#

查看:155
本文介绍了在ASP.NET的C#网站创建搜索引擎的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新手警惕!

ASP .NET | C#| VS2008 | MS SQL Server 2008 R2的防爆preSS

ASP .net | C# | VS2008 | MS SQL server 2008 R2 Express

我有一个文件名,文件路径和文件类别的数据库。我有很多的网站也静态页面。我想开发一个自定义搜索引擎(因为我不允许使​​用其他第三方工具 - 基本上他们要我重新发明轮子)。

I have a database with file names, file paths and file category. I have lots of static pages in the website also. I want to develop a custom search engine (since I am not allowed to use other 3rd party tools - basically they want me to reinvent the wheel).

当用户搜索的东西,它应搜索文件名,也是静态页面的内容。文件名可以被搜索从数据库(做了)简单。静态页面的SEO友好的标题,等等。

When the user searches for something, it should search the file names and also the content of the static pages. File names can be searched straightforward from the database(did it). The static pages are SEO friendly with headers,etc.

我如何去索引的网站静态页面?如何建立搜索索引后,某些网页在未来加入?有没有像在PHP卷曲功能,可以在ASP.net C#中使用?

How do I go about indexing the static pages in the website? How to create the search index after some pages are added in future? Are there functions like curl in php that can be used in ASP.net C#?

我也听说了全文搜索。关于如何查询全文数据库中的任何链接?

Also I heard about full text search. Any links on how to query the full text database?

P.S:新手:)

推荐答案

如果您确定您的网页不会在不久的将来有任何变化,仰望SQL全文索引,这应该可以满足大多数的目的。但是,如果你需要扩展要去forward.You应该看看 Apache Solr实现(使用Lucene内置) - 它提供了集成到你的.NET或其他平台preFER一个RESTful接口。它提供了所有的好东西可以要求,如小面不兼容的Java,.NET版本等的关注。

If you are sure your pages won't change at all in near future, look up SQL full text indexing, which should serve most purposes. But if you need to scale up going forward.You should look at Apache Solr (built using Lucene) - it offers a RESTful interface for integrating into .NET or whatever platform you prefer. It offers all the goodies could ask for such as faceting without concern for compatibility Java, .NET versions etc.

您可以轻松地使用Solr的集成到您的NET应用程序 1

You can easily integrate Solr into your .NET app using 1

这篇关于在ASP.NET的C#网站创建搜索引擎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆