Come ricostruire indice full-text?
-
11-09-2019 - |
Domanda
Hai un requisito per ricostruire mssql indice full-text.
Il problema è - ho bisogno di sapere esattamente quando lavoro è fatto. Pertanto - basta chiamare:
ALTER FULLTEXT CATALOG fooCatalog
REBUILD WITH ACCENT_SENSITIVITY = OFF
non funziona o sto facendo qualcosa di leggermente sbagliato. : /
Tutte le idee?
Soluzione
È possibile determinare lo stato della indicizzazione full-text interrogando il in questo modo:
SELECT FULLTEXTCATALOGPROPERTY('IndexingCatalog', 'PopulateStatus') AS Status
Tabella di testo completo Popola stato
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
tracciamento.
5 = Full-text indexing is throttled or pause
Altri suggerimenti
Dal momento che non posso commentare la risposta Magnus' ancora (mancanza di reputazione), vorrei aggiungere qui. Ho scoperto che c'è un conflitto di informazioni su MSDN in base al questo link MSDN. Secondo il link che sto referenziazione, la PopulateStatus dispone di 10 possibili valori di seguito elencati:
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