2014-05-09 49 views
0

(從我的研究,索引服務器不再存在於Win2012 - 如果這是錯誤的,告訴我如何設置它!)Microsoft搜索服務:是否有OLE DB提供程序? (候補:在Win2012索引服務器?)

移動從一個漂亮的.asp應用Win2003服務器到Win2012。此應用程序通過索引服務器的OLE DB驅動程序大量使用索引服務器。

我們如何使用它

例子:

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 

如何做到這一點對微軟搜索服務?

  • 是否有OLE DB提供程序用於搜索服務?
  • 如果不是,從VBA/ASP/Python訪問搜索服務的方式是什麼?

回答

3

經過大量的挖掘,答案已被發現。

下載並安裝Windows Search Server不會安裝OLE DB提供程序。安裝Windows SDK也沒有。提供程序在安裝Windows搜索服務時安裝。

在Win7/8桌面操作系統,這是默認安裝(我相信)。在服務器上,您必須啓用該功能。

enter image description here

+0

*** Microsoft索引服務的Microsoft OLE DB提供程序***爲_MSIDXS_。 ** Windows搜索服務器與Microsoft索引服務相同嗎?** – Kiquenet

3

使用Provider=Search.CollatorDSO;Extended Properties='Application=Windows';作爲連接字符串。

+0

你如何處理「的‘Search.Collat​​orDSO’提供者未註冊在本地計算機上。」如在此處發佈的例外情況中所示:http://pastebin.com/sEVSRSit – Jonesome

相關問題