SQL Server creates a full-text index

Source: Internet
Author: User

Background knowledge:

Full-text Catalogs are full-text indexes that are containers, so full-text catalogs are available before you create full-text indexes.

The first step:

To create a full-text catalog:

Create fulltext Catalog Catalog_name

[On Filegroup_name]

[With accent_sensitivity = On | off]

[As Default]

[Authorization owner_name];

Create fulltext Catalog Ctl_for_studio
ON filegroup FG1
With
Accent_sensitivity = on;
Go

Step Two:

To create a full-text index:

Create FULLTEXT INDEX on table_name (column_list)

Key index Index_name

[On Fulltext_catalog_name]

[With change_tracking = manual | auto | off stoplist= off | system | Stoplist_name]

                         create Fulltext index on DOCU ment (documentsummary,document type column fileextension)
                &NBSP ;        key index kix_for_document_ds_d
                &NBS P        on Ctl_for_studio
                    &NBS P    with
                         change_tra cking = auto,
                         stoplist = sys Tem
                         ---type column column_type_ The description on MSDN name is not too clear, fortunately it can be unspecified
                        &NB Sp;go

Note: The full-text search key must be a unique, non-nullable, single-column index that is not offline, is not defined on an indeterminate or imprecise non-persisted computed column, has no filters, and has a maximum size of 900 bytes 。 Please select a different index for the full-text key.

SQL Server creates a full-text index

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.