波斯语全文索引停止列表

Ahm*_*eei 5 sql sql-server full-text-search sql-server-2008 sql-server-2012

我需要为波斯语自定义全文搜索。并为此语言自定义停止/干扰词和同义词。

我的SQL Server版本是2016,安装了全文搜索。

Ami*_*ein 3

为了在 SQL Server 停止列表、全文目录等中使用波斯语,我们应该使用Neutral. 如果您不在Neutral目录中使用,我建议您将其更改为Neutral,有时这是空的,如下所示:

\n

在此输入图像描述

\n

您的问题可以通过此查询解决任何语言:

\n
--View Stoplist word\nSELECT w.stoplist_id,\n   l.name,\n   w.stopword,\n   w.language\nFROM sys.fulltext_stopwords AS w\n   INNER JOIN sys.fulltext_stoplists AS l\n     ON w.stoplist_id = l.stoplist_id;\n\n-- Stopwords list\nCREATE FULLTEXT STOPLIST StopListCustome;\nGO\n\n-- Add a stopword\nALTER FULLTEXT STOPLIST StopListCustome\n    ADD \'SQL\' LANGUAGE \'English\';\nGO\nALTER FULLTEXT STOPLIST StopListCustome \n    ADD \'\xd8\xa7\xd8\xb2\' LANGUAGE \'Neutral\';\n
Run Code Online (Sandbox Code Playgroud)\n

在github上找到这个文档和代码

\n

您还可以使用以下列表添加波斯语和英语的任何停止列表文本:

\n
\n

下载英文非索引字表

\n

下载许多单词的波斯语或波斯语非索引字表

\n

下载标准单词的波斯语或波斯语非索引字表\n

\n
\n