简体   繁体   English

Microsoft搜索服务:是否有OLE DB提供程序? (替代:Win2012上的索引服务器?)

[英]Microsoft Search Service: Is there an OLE DB provider? (alternate: Index Server on Win2012?)

(From my research, Index Server no longer exists on Win2012 -- If this is mistaken, tell me how to set it up!) (根据我的研究,在Win2012上不再存在Index Server -如果输入有误,请告诉我如何进行设置!)

Moving a nice .asp application from Win2003 server to Win2012. 将一个不错的.asp应用程序从Win2003服务器移动到Win2012。 This app makes heavy use of Index Server via the OLE DB driver for index server. 此应用程序通过用于索引服务器的OLE DB驱动程序大量使用了索引服务器。

Example of how we use it: 我们如何使用它的示例:

StrSQL="SELECT size, doctitle, vpath, filename, size, write, " & _
       "characterization, path, rank FROM SCOPE() " & _
       "WHERE CONTAINS('"searching words"') " & _
       "AND vPath LIKE '%Knowledgestore%'"  " & _
       "AND (filename like '%TXT')" & _
       "ORDER BY rank DESC"


Set ixQuery = Server.CreateObject("ADODB.Connection")
Set QueryRS = Server.CreateObject("ADODB.RecordSet")

ixQuery.Open "provider=msidxs;Data Source=knowledgestore"
QueryRS.Open strSQL,ixQuery

How do I do this against Microsoft Search Service? 如何针对Microsoft搜索服务执行此操作?

  • Is there an OLE DB provider for Search Service? 是否有用于搜索服务的OLE DB提供程序?
  • If not, what is the appro way to access Search Service from VBA/ASP/Python? 如果不是,从VBA / ASP / Python访问Search Service的合适方法是什么?

use Provider=Search.CollatorDSO;Extended Properties='Application=Windows'; 使用Provider=Search.CollatorDSO;Extended Properties='Application=Windows'; as connectionstring. 作为连接字符串。

After lots of digging around, the answer has been found. 经过大量的挖掘,找到了答案。

Downloading and installing Windows Search Server does not install the OLE DB provider. 下载和安装Windows Search Server不会安装OLE DB提供程序。 Neither does installing the Windows SDK. 安装Windows SDK也不会。 The provider is installed when the Windows Search Service is installed. 在安装Windows搜索服务时,将安装提供程序。

On Win7/8 desktop OS, this is installed by default (I believe). 在Win7 / 8桌面操作系统上,默认情况下已安装该软件(我相信)。 On server, you have to enable the feature. 在服务器上,您必须启用该功能。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM