Add Full Text Search on SQL Server

Problem

Microsoft has developed a feature called Full Text Search in SQL Server to optimize text searches. To learn more about Full Text Search basics, read my previous tutorial. In this article, I will show how to add Full Text Search to an existing SQL Server instance.

Solution

As mentioned in my last article, there are a sequence of steps we should follow to use full text search. The sequence was to:

  • Install Full Text Search
  • Create a Full Text Catalog
  • Create Full Text Indexes
  • Write your Full Text Queries using CONTAINS or FREETEXT operators to search specific words or phrases.

SQL Server installations do not install Full Text Search by default. You need to select it separately as an additional feature. For a new SQL Server instance, click the checkbox “Full-Text and Semantic Extractions for Search” on the feature selection window. This feature is installed with other server components. If you installed SQL Server without Full Text Search, you need to run setup again to add this component. Although this is additional feature, you cannot use it without using the SQL Server database engine.

T-SQL command to determine Full Text Search installation status:

--Check whether Full text Search is Installed or not
SELECT SERVERPROPERTY('IsFullTextInstalled') AS [Full Text Search Installed];  
GO

The output value “IsFullTextInstalled” will return:

  • 1 = Installed
  • 0 = Not installed
query results

Full Text Search is not installed. Next, we will install it.

Full Text Search Installation on Existing SQL Server Instance

You can see the below errors while creating a Full Text Catalog on a SQL Server instance that is running without the full text search feature.

Msg 7609, Level 17, State 5, Line 3518
Full-Text Search is not installed, or a full-text component cannot be loaded.
full text error

Copy the SQL Server setup files on the server where you want to install it or add it to existing installation. Right click the SQL Server setup file and select “Run as Administrator…” to launch the installation center.

sql server 2019 setup full text search

The popup window will appear as the Installation Center loads.

sql server 2019 setup full text search

Installation Center Screen

Install Full Text Search from the SQL Server Installation Center. Click “Installation” on the left side pane of the below screen.

sql server 2019 setup full text search

Then click the first option “New SQL Server stand-alone installation or add features to an existing installation”.

sql server 2019 setup full text search

Again, you will get a popup window until the SQL Server setup wizard appears.

sql server 2019 setup full text search

You will get the below screen to proceed with installation. Click the Next button to go to next screen.

sql server 2019 setup full text search

Setup files are installed as a prerequisite. Click the Next button, once enabled.

sql server 2019 setup full text search

The next screen will check install rules. All rules must pass for a successful installation. You can ignore warnings but must not ignore any errors. Click the Next button to go to next screen.

sql server 2019 setup full text search

Add Features

The next screen will allow you to choose an existing instance on which you need to enable Full Text Search by installing its supported components. Click the second radio button shown screen.

sql server 2019 setup full text search

You can see, I have selected option “Add feature to an existing instance of SQL Server 2019”. Now click the Next button to proceed.

sql server 2019 setup full text search

This is the main screen where you need to select the target feature that we want to install.  I clicked the check box besides this option in the below screen and clicked Next to proceed.

sql server 2019 setup full text search

As we know from our previous article, full text search is based on two processes one is the SQL Server engine sqlservr.exe and the other is fdhost.exe. The second process fdhost.exe is installed as a separate service. You can see this service configuration page is showing in the below screenshot. Click Next to go to next screen.

sql server 2019 setup full text search

Now, you will get a final window for validation. You can validate all configurations.  Once satisfied with all settings and configurations then click the Install button to start the Full Text Search installation.

sql server 2019 setup full text search

Installation will start.

sql server 2019 setup full text search

You can see the progress bar of the installation in the below screen. Wait for completion.

sql server 2019 setup full text search

Full Text Search is installed. Click on the link for the log file for this installation if you want to see more details.

sql server 2019 setup full text search

Click the Close button to close the window.

Create Full Text Catalogs

Create your first Full Text Catalogs and Indexes based on your requirements.

Run the below T-SQL statement to verify installation.

query results

You can also validate the install by looking at the Windows services and you can see the new service which is highlighted below.

sql server services

Although all user databases will be enabled to use Full Text Search post installation, if you get any errors using this feature for a database, you can use the below query to make sure it is enabled for the database you are trying to use for Full Text Search.

query results

Next Steps

Explore Full Text Search to allow for text-based searches for your databases.

9 Comments

  1. This article helped me solve the exact issue I was facing with SQL Server Full-Text Search installation on an existing instance. The step-by-step explanation was very clear and easy to follow. I was getting `IsFullTextInstalled = 0` and after following the guide, Full-Text Search installed successfully and my database import issue was resolved. Thanks for sharing such a detailed and practical tutorial!

  2. Thank you!!!
    This is awesome…
    In case someone need to know about the Installation Media Folder, follow this link:

    https://stackoverflow.com/questions/2979425/sql-server-installation-what-is-the-installation-media-folder

  3. Great article! Is it possible to add this Full text Search feature to an already existing 2019 AlwaysOn Cluster?

Leave a Reply

Your email address will not be published. Required fields are marked *