Cómo reconstruir un índice de texto?
-
11-09-2019 - |
Pregunta
¿Tienes un requisito para reconstruir índice de texto mssql.
El problema es - Necesito saber exactamente cuando se realiza trabajo. Por lo tanto - sólo llamar:
ALTER FULLTEXT CATALOG fooCatalog
REBUILD WITH ACCENT_SENSITIVITY = OFF
no funciona o que estoy haciendo algo un poco mal. : /
¿Alguna idea?
Solución
Puede determinar el estado de la indexación de texto completo mediante la consulta del como esto:
SELECT FULLTEXTCATALOGPROPERTY('IndexingCatalog', 'PopulateStatus') AS Status
Tabla de texto completo en Llenar Estado
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
seguimiento.
5 = Full-text indexing is throttled or pause
Otros consejos
Ya que no puedo comentar sobre la respuesta de Magnus todavía (falta de reputación), voy a añadir aquí. He descubierto que hay un conflicto de información sobre MSDN según este enlace MSDN. De acuerdo con el enlace estoy referenciación, la PopulateStatus tiene 10 valores posibles se enumeran a continuación:
0 = Idle. 1 = Full population in progress 2 = Paused 3 = Throttled 4 = Recovering 5 = Shutdown 6 = Incremental population in progress 7 = Building index 8 = Disk is full. Paused. 9 = Change tracking
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