ورود

View Full Version : اضافه کردن زبان عربی یا فارسی در sql 2005(Full Text Search)



farideh_en
دوشنبه 19 شهریور 1386, 13:58 عصر
سلام
می خواستم بدونم چه جور میشه در sql server2005 در قسمت full text زبان عربی یا فارسی را اضافه کرد ؟
من از روش زیر استفاده کردم اما نشد :



Adding support for your own language word breaker
In SQL 2005 you can add support for your own language by adding a key to HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSearch\Language. For example in order to add support for Arabic, follow these steps:

Download and install the Arabic word breaker from:
http://www.microsoft.com/middleeast/arabicdev/beta/search/ (http://www.microsoft.com/middleeast/arabicdev/beta/search/)
Run the installation program
Install Complex Script components – open up Regional Settings, click on the Languages tab, and select Install files for complex script and right to left languages.file:///C:/Documents%20and%20Settings/fl/Desktop/full_text/SQL%20Server%20Full%20Text%20Search%20Language%20F eatures_files/130-image001.jpg

Add the Arabic key: HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSearch\Language\Arabic-EG with the following values:
Locale (dword) 1025 (decimal)
NoiseFile (String) c:\temp\Arabic.txt
StemmerClass (String)
TsaurusFile (String) c:\temp\ArabicThesaurus.txt
WordBreakerClass (String) {3E0C67A6-38F8-43b6-BD88-3F3F3DAC9EC1}
Add the following key
HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSearch\CLSID\{3E0C67A6-38F8-43b6-BD88-3F3F3DAC9EC1}
with a string value of lrar32.dll.
Copy lrar32.dll and lrar32.lex from C:\Program Files\SharePoint Portal Server\Bin\ to C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn
Issue a call to exec sp_fulltext_service 'update_languages' and restart SQL Server. It is critical that you review your license, or contact your local Microsoft office, with regard to possible licensing issues surrounding use of the Arabic word breaker in your SQL Server search application. The Arabic word breaker (http://www.microsoft.com/middleeast/arabicdev/beta/search/) seems to be in perpetual beta and it is not clear whether it is licensed for SQL Server 2005. It appears that there are no licensing restrictions on other third-party supplied SQL 2005 word breakers, but they are not supported by Microsoft.

AminSobati
دوشنبه 19 شهریور 1386, 20:57 عصر
دوست عزیزم،
FTS برای زبان فارسی Customize نشده. در حال حاضر از حالت Neutral برای جستجو در متون فارسی استفاده میکنیم

farideh_en
سه شنبه 20 شهریور 1386, 09:01 صبح
ممنون جناب ثباتی عزیز
میشه بیشتر توضیح بدین که چطوری استفاده کنم اگه یه مثال بذارین ممنون میشم.

farideh_en
سه شنبه 20 شهریور 1386, 09:39 صبح
جناب ثباتی این روش درسته؟


USE sit
EXECsp_configure'default full-text language','0'
RECONFIGURE
EXECsp_configure

با کد بالا زبان پیش فرض را عوض کنم بعد جستجو رو انجام بدم؟

AminSobati
سه شنبه 20 شهریور 1386, 20:57 عصر
نه منظور بنده جایی هست که در Wizard دارین فیلدها رو Add میکنین به Full Text Index. اونجا Neutral انتخاب کنین

farideh_en
چهارشنبه 21 شهریور 1386, 15:05 عصر
سلام
من با sql server 2005 کار میکنم و ویزارد ندارم.با spتونستم FTS رو فعال کنم

AminSobati
پنج شنبه 22 شهریور 1386, 06:50 صبح
منظورتون چیه Wizard ندارین؟! روی جدول Right Click میکنین Wizard برای FTS ندارین؟

farideh_en
یک شنبه 25 شهریور 1386, 09:33 صبح
سلام
بله وقتی روی جدول کلیک راست میکنم گزینه FTS را نداره.

AminSobati
یک شنبه 25 شهریور 1386, 23:41 عصر
USE mydb;
GO
EXEC sp_fulltext_database 'enable'
GO