静态网站搜索 [英] Static Site Search

查看:75
本文介绍了静态网站搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个搜索引擎,可以搜索当前的静态网站.

我从Google获得了很多有用的链接,例如

I am developing a Search Engine which search current static website.

I got many useful links from google like

http://www.codeproject.com/KB/IP/Searcharoo.aspx
http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=38339
http://www.codeproject.com/KB/aspnet/DotLuceneSearch.aspx
http://www.codeproject.com/KB/applications/SearchDotnet.aspx
http://msdn.microsoft.com/en-us/magazine/cc163355.aspx
http://www.searcharoo.net/SearcharooV7/
http://www.codeproject.com/KB/aspnet/DotLuceneSearch.aspx
http://ifdefined.com/blog/post/Full-Text-Search-in-ASPNET-using-LuceneNET.aspx
http://www.codeproject.com/KB/IP/Searcharoo_4.aspx
http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=38339
http://www.codeproject.com/info/search.aspx?artkw=site+search+&aidlst=64,65,69,85,87,147&sa_ao=False&sa_so=17&sa_as=1,6&pgnum=2



但是在搜索结果中进行搜索时,大多数都没有突出显示关键字.

需要一些仅使用C#.Net进行静态站点搜索的有用链接.

提前致谢. :)



But most of them not having highlighted keyword when search is done in the search results.

Need some useful links for static site search using only C#.Net.

Thanks in advance. :)

推荐答案

您是否考虑过客户端库在呈现页面时进行突出显示搜索文本的工作?我认为这是大多数人的运作方式.

您将使用javascript库(如jQuery,Prototype等)将一个类应用于符合搜索条件的单词.

您可以找到繁重的插件,例如:

http://bartaz.github.com/sandbox.js/jquery.highlight.html [ ^ ]


干杯,
-jc
Have you considered a client-side library to do the work of highlighting the search text when the page is rendered? I think that it is how most operate.

You would use a javascript library (like jQuery, Prototype, etc) to apply a class to word that meet the search criteria.

You can find plugins to do the heavy-lifting, such as this:

http://bartaz.github.com/sandbox.js/jquery.highlight.html[^]


Cheers,
-jc


这对我有很大帮助:)


这篇关于静态网站搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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