本文介绍了内部搜索引擎webmatrix 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图为我的webmatrix网站实​​现一个内部搜索引擎,它将通过我的数据库(SQL CE)来搜索相似性并返回结果。有人建议我使用lucene.net,因为它有多强大。我无法找到有关使用webmatrix实现lucene.net的文档,只有使用VS 2015的asp.net上的实现。任何人都可以指导我在webmatrix上实现它吗?或者是否有人对内部搜索引擎有任何好的建议?或者编写我自己的搜索算法会更容易?谢谢!

您可能想使用我们的产品,这里有一个针对小型网站的免费版本。我相信你会发现它比Lucene更容易使用,尽管我们没有特定于WebMatrix的文档,但标准的基于Javascript的用法应该也是一样的。该产品在后端使用ASP.NET。
例如,如果您查看,您会发现可以使用索引管理器工具来抓取任何网站。然后你将一些JavaScript放到你的页面上,然后挂接WCF作为后端搜索调用。



如果有帮助,搜索引擎会在前端使用Javascript / HTML构建UI,然后通过AJAX / WCF与执行搜索的后端服务进行通信。
您可以使用webmatrix运行WCF,请参阅



如果您遇到困难,欢迎您在


I'm trying to implement an internal search engine for my webmatrix website, it will serach through my database(SQL CE) for similarity and return results. Someone suggested me to use lucene.net because of how powerful it is. I cannot find documentation on implementing lucene.net with webmatrix, only implementation on asp.net with VS 2015. Can anyone guide me on implementing it on webmatrix? Or does anyone have any good suggestion for internal search engine? Or it would be easier to write my own search algorithm? Thanks!

解决方案

You might like to use our product SearchUnit Community, there's a free version for small websites. I believe you'll find it easier to use than Lucene, and although we don't have documentation specific to WebMatrix, the standard Javascript based usage should apply just the same. The product uses ASP.NET on the backend.For example if you look at the quick start, you'll see that you can crawl any web-site using the index manager tool. Then you drop some Javascript onto your page, and hook up WCF for the backend search calls.

If it helps, the search engine uses Javascript/HTML on the front end to build the UI, and then communicates via AJAX/WCF to the backend service that does the searching.You can run WCF with webmatrix, see https://blogs.msdn.microsoft.com/james_osbornes_blog/2010/07/30/webmatrix-iisexpress-beta-hosting-wcf-services/

If you're stuck you're welcome to post support questions on the SearchUnit Community forum

这篇关于内部搜索引擎webmatrix 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 03:26