Comment reconstruire l'index texte intégral?
-
11-09-2019 - |
Question
Vous avez une obligation de reconstruire l'index MSSQL texte intégral.
Le problème est - je dois savoir exactement quand le travail est fait. Par conséquent - il suffit d'appeler:
ALTER FULLTEXT CATALOG fooCatalog
REBUILD WITH ACCENT_SENSITIVITY = OFF
ne fonctionne pas ou je fais quelque chose un peu mal. : /
Toutes les idées?
La solution
Vous pouvez déterminer l'état de l'indexation du texte intégral en interrogeant les comme ceci:
SELECT FULLTEXTCATALOGPROPERTY('IndexingCatalog', 'PopulateStatus') AS Status
Tableau texte intégral Populate État
Displays the population status of the full-text indexed table. The possible values are as follows: 0 = Idle. 1 = Full population is in progress. 2 = Incremental population is in progress. 3 = Propagation of tracked changes is in progress. 4 = Background update index is in progress, such as automatic change
suivi.
5 = Full-text indexing is throttled or pause
Autres conseils
Depuis que je ne peux pas commenter la réponse de Magnus encore (manque de réputation), je vais l'ajouter ici. Je trouve qu'il ya un conflit d'informations sur MSDN selon
SELECT name, case FULLTEXTCATALOGPROPERTY(name, 'PopulateStatus')
when 0 then 'Idle'
when 1 then ' Full population in progress'
when 2 then ' Paused'
when 3 then ' Throttled'
when 4 then ' Recovering'
when 5 then ' Shutdown'
when 6 then ' Incremental population in progress'
when 7 then ' Building index'
when 8 then ' Disk is full. Paused.'
when 9 then ' Change tracking' end AS Status
from sys.fulltext_catalogs