作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我需要为波斯语自定义全文搜索。并为此语言自定义停止/干扰词和同义词。
我的SQL Server版本是2016,安装了全文搜索。
最佳答案
要在 SQL Server 停止列表、全文目录等中使用波斯语,我们应该使用 Neutral
.如果您不使用 Neutral
在目录中我建议你把它改成 Neutral
,有时这是空的,如下所示:
您可以通过此查询解决任何语言的问题:
--View Stoplist word
SELECT w.stoplist_id,
l.name,
w.stopword,
w.language
FROM sys.fulltext_stopwords AS w
INNER JOIN sys.fulltext_stoplists AS l
ON w.stoplist_id = l.stoplist_id;
-- Stopwords list
CREATE FULLTEXT STOPLIST StopListCustome;
GO
-- Add a stopword
ALTER FULLTEXT STOPLIST StopListCustome
ADD 'SQL' LANGUAGE 'English';
GO
ALTER FULLTEXT STOPLIST StopListCustome
ADD 'از' LANGUAGE 'Neutral';
您可以使用以下列表添加任何波斯语和英语停止列表文本:
Download Persian or Farsi stoplist for many words
Download Persian or Farsi stoplist for standardwords
关于sql - 波斯语全文索引停止列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60293825/
我使用 Highcharts 绘制一些图表。我的语言是波斯语(波斯语),我想用波斯数字绘制图表。但是在 Highcharts 中,所有数字都以英文显示。 有没有办法用波斯语显示数字(所有数字:yaxi
我是一名优秀的程序员,十分优秀!