有关SQL Azure的全文本搜索 [英] Full Text Search on SQL Azure

查看:163
本文介绍了有关SQL Azure的全文本搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我迁移到SQL Azure的数据库。有在此数据库的一些存储过程,依赖于CONTAINSTABLE。从我的理解,SQL Azure不支持这一点。正因为如此,我希望会有模仿在C#code此功能的方法。

I have a database that I am migrating to SQL Azure. There are a couple of stored procedures in this database that rely on ContainsTable. From my understanding, SQL Azure does not support this. Because of this, I was hoping there would be a way to imitate this functionality in C# code.

有谁知道如何是:a)在SQL Azure中利用CONTAINSTABLE或b)模拟在C#code

Does anyone know how to either: a) Utilize ContainsTable in SQL Azure or b) Imitate it in C# code?

推荐答案

是的,你是正确的,包含描述表不支持SQL Azure上的这里

Yes, you are right that Contains Table are not supported on SQL Azure as described here.

根据你的问题)是不可能的不过二)是可以使用Lucene.NET。

Based on your question a) is not possible however b) is possible using Lucene.NET.

如果您希望使用code得到充分的文本搜索在SQL Azure中,你将需要使用Lucene.net在Web或辅助角色索引你的SQL Azure的数据到Windows Azure Blob存储,然后访问索引数据进行搜索。如下面所描述的过程:

IF you wish to use code to get full text search in SQL Azure you would need to use Lucene.net in a web or worker role to index your SQL Azure data to Windows Azure Blob storage and then access the indexed data to search. The process is described as below:


  1. 配置您的Windows Azure Blob存储

  2. 使用的Web或辅助角色来访问你的SQL Azure的,然后在Windows Azure上Blob存储创建索引

  3. 使用储存在的Windows Azure Blob存储的索引数据

下面是开始工作的文章:<一href=\"http://social.technet.microsoft.com/wiki/contents/articles/2367.how-to-use-lucene-net-with-sql-azure-en-us.aspx\">How使用Lucene.NET与SQL Azure的(EN-US)

Here is an article to start your work: How to Use Lucene.NET with SQL Azure (en-US)

这篇关于有关SQL Azure的全文本搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆