Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Full-Text Search is not installed, or a full-text component cannot be loaded

I am currently attempting to create a full text index on a unique column. The table definition is:

CREATE TABLE [dbo].[DictionaryWords](
       [Id] [int] IDENTITY(1,1) NOT NULL,
       [Word] [varchar](255) NOT NULL,
       [Frequency] [int] NOT NULL,
CONSTRAINT [PK_DictionaryWords] PRIMARY KEY CLUSTERED 
(
       [Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, 
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
CONSTRAINT [UX_Word] UNIQUE NONCLUSTERED 
(
       [Word] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, 
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

I then created the full text catalogue:

CREATE FULLTEXT CATALOG ft AS DEFAULT

and finally attempted to create the full text index:

CREATE FULLTEXT INDEX ON DictionaryWords(Word) KEY INDEX UX_Word

but I get the error:

Full-Text Search is not installed, or a full-text component cannot be loaded

Full text search is installed, as testified by the command:

SELECT SERVERPROPERTY('IsFullTextInstalled')

which returns a value of 1. So presumably the problem is that "full-text component cannot be loaded".

Any ideas what I should look at next?

like image 905
Steve Wright Avatar asked Sep 11 '25 08:09

Steve Wright


1 Answers

That's how I turned it on:

  • Open: SQL Server Installation Center
  • Click on Installation and then on New SQL Server stand-alone installation... enter image description here
  • Navigate to the installation folder, look like this: enter image description here and select the folder that ends with ENU
  • In the setup process just click next until you get to the Installation Type and then you check the "Add features to an existing instance of SQL Server..." enter image description here
  • Click next to the Feature Selection and there you should pick "Full-Text and Semantic for search" enter image description here
  • click next, next, next until the end

For those who do not have "SQL Server Installation Center", you can go to Control Panel > Programs > Unistall or ... and find for ex: Microsft SQL Server 2017 (64-bit) , not Setup, LocalDB, NativeClient or T-SQL, right-click > Unistall or change and choose Add.

like image 191
Yinon_90 Avatar answered Sep 13 '25 05:09

Yinon_90