来自Classic ASP或ASP.NET的Microsoft Search Server 2008 Express Edition

时间:2021-01-12 01:45:38

We have a new installation of Microsoft Search Server 2008 Express Edition on one server and it's nicely indexing our intranet (on another server) which we can search from the provided search form on the search server.

我们在一台服务器上安装了新的Microsoft Search Server 2008 Express Edition,它可以很好地索引我们的内部网(在另一台服务器上),我们可以从搜索服务器上提供的搜索表单中进行搜索。

I'd like to customise the search results so that they actually look like our intranet has generated them and also place the search form's textbox and submit button on the intranet pages themselves. The existing, provided search form appears to be an ASP.NET page and performs a postback so it's not like I can just duplicate that in my intranet classic ASP code and anyway, I'd end up with some pre-formatted HTML returned when I'm just after some raw XML to transform/format myself.

我想自定义搜索结果,以便它们实际上看起来像我们的内部网已生成它们,并且还将搜索表单的文本框和提交按钮放在Intranet页面上。现有的,提供的搜索表单似乎是一个ASP.NET页面并执行回发,所以它不像我可以在我的Intranet经典ASP代码中复制它,无论如何,我最终会返回一些预先格式化的HTML返回我只是在一些原始XML之后转换/格式化自己。

Is there some URL that I can access the search server with, passing the query parameter(s) and have it return some valid XML that I can then, via ASP, or ASP.NET perform a tranformation using XSLT?

是否有一些我可以访问搜索服务器的URL,传递查询参数并返回一些有效的XML,然后我可以通过ASP或ASP.NET使用XSLT执行转换?

All the customisation articles I seem to come across on the Web refer to creating Sharepoint Web Parts and using them on an ASP.NET page and that's (Sharepoint Web Parts) something I know nothing about :(

我似乎在Web上遇到的所有自定义文章都指的是创建Sharepoint Web部件并在ASP.NET页面上使用它们(Sharepoint Web Parts)我对此一无所知:(

I currently do just what I'm looking for with a Google Mini appliance, calling a URL with search terms tacked onto the URL and use XSLT to transform the returned XML search results into something that, style-wise at least, matches our (mainly) classic ASP intranet. However, we want to look at using Microsoft Search Server 2008 to perform the same task if possible.

我目前使用Google Mini设备正在寻找我正在寻找的东西,调用带有搜索术语的URL,并在URL上添加搜索术语,并使用XSLT将返回的XML搜索结果转换为至少与样式匹配的内容(主要是)经典ASP内联网。但是,我们希望在可能的情况下使用Microsoft Search Server 2008执行相同的任务。

1 个解决方案

#1


3  

You can call the Search webservice. Thihs isn't quite as straightforward as calling a Url like the Google appliance, but it's not daunting.

您可以调用搜索Web服务。 Thihs并不像Google设备那样直接调用Url,但它并不令人生畏。

In MOSS 2007, the Url is http://portalname/_vti_bin/Search.asmx. The method you will probably want to use is Query. This will return results as an Xml Document. From there, you can apply your XSL and display inline on your custom search page.

在MOSS 2007中,Url是http://portalname/_vti_bin/Search.asmx。您可能想要使用的方法是Query。这将返回结果作为Xml文档。从那里,您可以应用XSL并在自定义搜索页面上内嵌显示。

#1


3  

You can call the Search webservice. Thihs isn't quite as straightforward as calling a Url like the Google appliance, but it's not daunting.

您可以调用搜索Web服务。 Thihs并不像Google设备那样直接调用Url,但它并不令人生畏。

In MOSS 2007, the Url is http://portalname/_vti_bin/Search.asmx. The method you will probably want to use is Query. This will return results as an Xml Document. From there, you can apply your XSL and display inline on your custom search page.

在MOSS 2007中,Url是http://portalname/_vti_bin/Search.asmx。您可能想要使用的方法是Query。这将返回结果作为Xml文档。从那里,您可以应用XSL并在自定义搜索页面上内嵌显示。