寻找Microsoft Index Server ASP.NET示例

时间:2009-05-27 12:58:36

标签: asp.net windows sharepoint

我不是程序员,但我能够充分熟练地使用frankenstein代码片段,如果通过一些好灵魂的优雅,我可以遇到一些示例ASP代码,作为ms索引服务器的GUI,我当然可以使它工作并且看起来很好。

如果有人可以提供任何帮助,我会做后空翻。但我不会把它放在youtube上。那里有足够的脸谱视频。

总结:有谁知道我在哪里可以找到索引服务器的asp页面?越完整越好。片段非常受欢迎。

btw:io将此标记为sharepoint,因为它非常相似。一些苔藓管理员肯定能借给我一把手!

2 个答案:

答案 0 :(得分:1)

CodeProject的一些样本怎么样?这会满足你的需求吗?对不起,如果不了解更多细节以及您想要做什么,我无法提供更具体的帮助。

  

Microsoft Index Server class for ASP(经典ASP)

     

Your free search engine – Microsoft Indexing Server

答案 1 :(得分:0)

要与asp.net中的索引服务器目录通信,您可以使用ole db连接对象。

OleDbConnection conn = new OleDbConnection("Provider=MSIDXS;Integrated Security .=;Data Source=" + catalogName);
            cmdQuery = new OleDbCommand(query, conn);

其中catalogName是您要查询的计算机上的目录的名称。查询是一个包含您正在使用的索引查询的字符串。

 //Get reader 
 rQuery = cmdQuery.ExecuteReader(CommandBehavior.CloseConnection);

 //Create dataset and load values from reader into it
 dataQuery = new DataSet("IndexResults");
 dataQuery.Load(rQuery, LoadOption.OverwriteChanges, new string[] { "" });

 //Return the first table which will be the results from the query
 results = dataQuery.Tables[0].Copy();

不要忘记在finally语句中处理连接和阅读器:)

索引查询本身与SQL非常相似 - 您还可以在查询中设置属性以用作别名,以便更容易阅读。