Rechercher dans le manuel MySQL
25.39.18 The INFORMATION_SCHEMA INNODB_FT_INDEX_TABLE Table
The INNODB_FT_INDEX_TABLE
table
provides information about the inverted index used to process text
searches against the FULLTEXT
index of an
InnoDB
table.
This table is empty initially. Before querying it, set the value
of the innodb_ft_aux_table
system
variable to the name (including the database name) of the table
that contains the FULLTEXT
index (for example,
test/articles
).
For related usage information and examples, see Section 15.14.4, “InnoDB INFORMATION_SCHEMA FULLTEXT Index Tables”.
The INNODB_FT_INDEX_TABLE
table has
these columns:
WORD
A word extracted from the text of the columns that are part of a
FULLTEXT
.FIRST_DOC_ID
The first document ID in which this word appears in the
FULLTEXT
index.LAST_DOC_ID
The last document ID in which this word appears in the
FULLTEXT
index.DOC_COUNT
The number of rows in which this word appears in the
FULLTEXT
index. The same word can occur several times within the cache table, once for each combination ofDOC_ID
andPOSITION
values.DOC_ID
The document ID of the row containing the word. This value might reflect the value of an ID column that you defined for the underlying table, or it can be a sequence value generated by
InnoDB
when the table contains no suitable column.POSITION
The position of this particular instance of the word within the relevant document identified by the
DOC_ID
value.
Notes
This table is empty initially. Before querying it, set the value of the
innodb_ft_aux_table
system variable to the name (including the database name) of the table that contains theFULLTEXT
index (for example,test/articles
). The following example demonstrates how to use theinnodb_ft_aux_table
system variable to show information about aFULLTEXT
index for a specified table. Before information for newly inserted rows appears inINNODB_FT_INDEX_TABLE
, theFULLTEXT
index cache must be flushed to disk. This is accomplished by running anOPTIMIZE TABLE
operation on the indexed table with theinnodb_optimize_fulltext_only
system variable enabled. (The example disables that variable again at the end because it is intended to be enabled only temporarily.)- body TEXT,
- ('MySQL Tutorial','DBMS stands for DataBase ...'),
- ('How To Use MySQL Well','After you went through a ...'),
- ('Optimizing MySQL','In this tutorial we will show ...'),
- ('1001 MySQL Tricks','1. Never run mysqld as root. 2. ...'),
- ('MySQL vs. YourSQL','In the following database comparison ...'),
- ('MySQL Security','When configured properly, MySQL ...');
- +---------------+----------+----------+----------+
- +---------------+----------+----------+----------+
- +---------------+----------+----------+----------+
- +------------+-----------+--------+----------+
- +------------+-----------+--------+----------+
- | 1001 | 1 | 4 | 0 |
- | comparison | 1 | 5 | 44 |
- | configured | 1 | 6 | 20 |
- +------------+-----------+--------+----------+
You must have the
PROCESS
privilege to query this table.Use the
INFORMATION_SCHEMA
COLUMNS
table or theSHOW COLUMNS
statement to view additional information about the columns of this table, including data types and default values.For more information about
InnoDB
FULLTEXT
search, see Section 15.6.2.4, “InnoDB FULLTEXT Indexes”, and Section 12.9, “Full-Text Search Functions”.
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-innodb-ft-index-table-table.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.