You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example returns 1 if the `PK_Document_DocumentID` index is used to enforce uniqueness of the full-text key column. Otherwise, it returns 0 or NULL. NULL implies you are using an invalid index name, the index name does not correspond to the table, the table does not exist, or so forth.
122
+
This example returns 1 if the `PK_Document_DocumentNode` index is used to enforce uniqueness of the full-text key column. Otherwise, it returns 0 or NULL. NULL implies you are using an invalid index name, the index name does not correspond to the table, the table does not exist, or so forth.
123
123
124
124
### Find the identifier of the full-text key column
125
125
@@ -135,7 +135,7 @@ SELECT OBJECTPROPERTYEX(OBJECT_ID( 'table_name'), 'TableFulltextKeyColumn' ) AS
135
135
136
136
The following example returns the identifier of the full-text key column or NULL. NULL implies that you are using an invalid index name, the index name does not correspond to the table, the table does not exist, or so forth.
@@ -156,7 +156,7 @@ SELECT @key_column AS 'Unique Key Column';
156
156
GO
157
157
```
158
158
159
-
This example returns a result set column named `Unique Key Column`, which displays a single row containing the name of the unique key column of the Document table, DocumentID. Note that if this query contained an invalid index name, the index name did not correspond to the table, the table did not exist, and so forth, it would return NULL.
159
+
This example returns a result set column named `Unique Key Column`, which displays a single row containing the name of the unique key column of the Document table, DocumentNode. Note that if this query contained an invalid index name, the index name did not correspond to the table, the table did not exist, and so forth, it would return NULL.
160
160
161
161
## Index varbinary(max) and xml columns
162
162
If a **varbinary(max)**, **varbinary**, or **xml** column is full-text indexed, it can be queried using the full-text predicates (CONTAINS and FREETEXT) and functions (CONTAINSTABLE and FREETEXTTABLE), like any other full-text indexed column.
Copy file name to clipboardExpand all lines: docs/relational-databases/search/get-started-with-full-text-search.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Get Started with Full-Text Search | Microsoft Docs"
3
-
ms.date: "08/22/2016"
3
+
ms.date: "03/31/2020"
4
4
ms.prod: sql
5
5
ms.prod_service: "search, sql-database"
6
6
ms.technology: search
@@ -49,10 +49,17 @@ To set up full-text search by using a wizard, see [Use the Full-Text Indexing Wi
49
49
2. Before you can create a full-text index on the Document table, ensure that the table has a unique, single-column, non-nullable index. The following [CREATE INDEX](../../t-sql/statements/create-index-transact-sql.md) statement creates a unique index, `ui_ukDoc`, on the DocumentID column of the Document table:
50
50
51
51
```sql
52
-
CREATE UNIQUE INDEX ui_ukDoc ON Production.Document(DocumentID);
52
+
CREATE UNIQUE INDEX ui_ukDoc ON Production.Document(DocumentNode);
53
53
```
54
54
55
-
3. After you have a unique key, you can create a full-text index on the `Document` table by using the following [CREATE FULLTEXT INDEX](../../t-sql/statements/create-fulltext-index-transact-sql.md) statement.
55
+
3. Drop the existing full-text index on the `Document` table by using the following [DROP FULLTEXT INDEX](../../t-sql/statements/drop-fulltext-index-transact-sql.md) statement.
56
+
57
+
```sql
58
+
DROP FULLTEXT INDEX ON Production.Document
59
+
GO
60
+
```
61
+
62
+
4. After you have a unique key, you can create a full-text index on the `Document` table by using the following [CREATE FULLTEXT INDEX](../../t-sql/statements/create-fulltext-index-transact-sql.md) statement.
56
63
57
64
```sql
58
65
CREATE FULLTEXT INDEX ON Production.Document
@@ -66,6 +73,8 @@ To set up full-text search by using a wizard, see [Use the Full-Text Indexing Wi
66
73
GO
67
74
68
75
```
76
+
77
+
69
78
70
79
The TYPE COLUMN defined in this example specifies the type column in the table that contains the type of the document in each row of the column 'Document' (which is of binary type). The type column stores the user-supplied file extension -".doc", ".xls", and so forth - of the document in a given row. The Full-Text Engine uses the file extension in a given row to invoke the correct filter to use for parsing the data in that row. After the filter has parsed the binary data of the row, the specified word breaker parses the content. (In this example, the word breaker for British English is used.) For more information, see [Configure and Manage Filters for Search](../../relational-databases/search/configure-and-manage-filters-for-search.md).
0 commit comments