I use ASP.NET 4.6.1 in Windows Server 2008 r2 using Indexing Server.
我使用索引服务器在Windows Server 2008 r2中使用ASP.NET 4.6.1。
I use Microsoft OLE DB Provider for Microsoft Indexing Service, same Provider MSIDXS
我使用Microsoft OLE DB Provider for Microsoft Indexing Service,相同的Provider MSIDXS
Now, I want use Windows Server 2012 r2.
现在,我想使用Windows Server 2012 r2。
Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.
自Windows XP起,不再支持索引服务,从Windows 8开始无法使用索引服务。而是使用Windows搜索进行客户端搜索,使用Microsoft Search Server Express进行服务器端搜索。
How use using Microsoft Search in ASP.NET?
如何在ASP.NET中使用Microsoft Search?
I'm confused: I use Windows Search Server or Windows Search Service ?
我很困惑:我使用Windows Search Server或Windows Search Service?
Which OLE DB provider is required ?
需要哪个OLE DB提供程序?
How install Windows Search Server ?
如何安装Windows Search Server?
How install Windows Search Service ? (maybe feature in Windows 2012 R2)
如何安装Windows Search Service? (可能是Windows 2012 R2中的功能)
Downloading and installing Windows Search Server does not install the OLE DB provider. Neither does installing the Windows SDK. The provider is installed when the Windows Search Service is installed.
下载和安装Windows Search Server不会安装OLE DB提供程序。也没有安装Windows SDK。安装Windows搜索服务时安装提供程序。
On Win7/8 desktop OS, this is installed be default (I believe). On server Windows Server 2012, you have to enable the feature.
在Win7 / 8桌面操作系统上,这是默认安装(我相信)。在服务器Windows Server 2012上,您必须启用该功能。
My code using Indexing Server in Windows 2008 R2 + ASP.NET:
我在Windows 2008 R2 + ASP.NET中使用索引服务器的代码:
// Catalog Name
string strCatalog = txtNombreCatalogo.Text;
string strQuery = "";
strQuery = "Select DocTitle,Filename,Size,PATH,URL";
strQuery += ", DocAuthor, vpath, Write, Rank, Create, Characterization, DocCategory";
strQuery += " from Scope() where FREETEXT('" + txtNombreFichero.Text + "')";
// txtNombreFichero.Text is the word that you type in the text box to query by using Indexing Service.
string connstring = "Provider=MSIDXS;Integrated Security .='';Data Source=" + strCatalog;
//connstring = "Provider=MSIDXS.1;Integrated Security .='';Data Source=" + strCatalog;
var conn = new System.Data.OleDb.OleDbConnection(connstring);
conn.Open();
var cmd = new System.Data.OleDb.OleDbDataAdapter(strQuery, conn);
var testDataSet = new System.Data.DataSet();
cmd.Fill(testDataSet, "SearchResults");
DataView source = new DataView(testDataSet.Tables[0]);
dgResultados.DataSource = source;
dgResultados.DataBind();
1 个解决方案
#1
0
I'm confused: I use Windows Search Server or Windows Search Service ?
我很困惑:我使用Windows Search Server或Windows Search Service?
You use Indexing search(https://msdn.microsoft.com/en-us/library/ee805985(v=vs.85).aspx).
您使用索引搜索(https://msdn.microsoft.com/en-us/library/ee805985(v = vs.85).aspx)。
Which OLE DB provider is required ?
需要哪个OLE DB提供程序?
For use Windows Search Service use "Provider=Search.CollatorDSO;Extended Properties='Application=Windows'; Data Source=(local);"
对于使用Windows Search Service,请使用“Provider = Search.CollatorDSO; Extended Properties ='Application = Windows'; Data Source =(local);”
How install Windows Search Server ?
如何安装Windows Search Server?
For use Windows Search Server you should download and install Microsoft Search Server(based on sharepoint) https://www.microsoft.com/en-us/download/details.aspx?id=18914.
要使用Windows Search Server,您应下载并安装Microsoft Search Server(基于sharepoint)https://www.microsoft.com/en-us/download/details.aspx?id=18914。
#1
0
I'm confused: I use Windows Search Server or Windows Search Service ?
我很困惑:我使用Windows Search Server或Windows Search Service?
You use Indexing search(https://msdn.microsoft.com/en-us/library/ee805985(v=vs.85).aspx).
您使用索引搜索(https://msdn.microsoft.com/en-us/library/ee805985(v = vs.85).aspx)。
Which OLE DB provider is required ?
需要哪个OLE DB提供程序?
For use Windows Search Service use "Provider=Search.CollatorDSO;Extended Properties='Application=Windows'; Data Source=(local);"
对于使用Windows Search Service,请使用“Provider = Search.CollatorDSO; Extended Properties ='Application = Windows'; Data Source =(local);”
How install Windows Search Server ?
如何安装Windows Search Server?
For use Windows Search Server you should download and install Microsoft Search Server(based on sharepoint) https://www.microsoft.com/en-us/download/details.aspx?id=18914.
要使用Windows Search Server,您应下载并安装Microsoft Search Server(基于sharepoint)https://www.microsoft.com/en-us/download/details.aspx?id=18914。