의 사용법을 설명하는 선택입니다 제공 할 수 있습니다 :
IF OBJECT_ID('dbo.Documents', 'table') IS NOT NULL
DROP TABLE dbo.Documents;
CREATE TABLE dbo.Documents
(
id INT NOT NULL IDENTITY,
title NVARCHAR(100) NOT NULL,
doctype NCHAR(4) NOT NULL,
docexcerpt NVARCHAR(1000) NOT NULL,
doccontent VARBINARY(MAX) NOT NULL,
CONSTRAINT PK_Documents
PRIMARY KEY CLUSTERED(id)
);
GO
INSERT INTO dbo.Documents
(title, doctype, docexcerpt, doccontent)
SELECT N'Introduction to Data Mining',
N'docx',
N'Using Data Mining is becoming more a necessity for every company
and not an advantage of some rare companies anymore. ',
bulkcolumn;
GO
--edit 다시로드하려면 다음 편집 된 동의어 사전
--run
<expansion>
<sub>need</sub>
<sub>necessity</sub>
</expansion>
을 추가하여 동의어 사전 파일
EXEC sys.sp_fulltext_load_thesaurus_file 1033;
GO
그리고 별도의 배치에서 다음 명령을 실행합니다
이
SELECT *
FROM dbo.Documents
WHERE FREETEXT(doccontent, N'FORMSOF(THESAURUS, need)');
GO
단어 "필요"동의어는 동의어 사전에로드 그러나 행이 경우 반환의 docexcerpt에 있지를 시소러스가 제대로로드되었습니다. 문제가 있다면 StackOverflow 기사와로드/구성 방법에 대한 BOL 항목이 많이 있습니다.
동의어 사전 파일을 성공적으로로드하는 것과 관련하여 다른 질문이 있습니다. 질문에 답변이나 의견을 남기므로 도와 드리겠습니다. – Thronk