Wie Volltextindex neu zu erstellen?
-
11-09-2019 - |
Frage
Haben Sie eine Anforderung mssql Volltextindex neu zu erstellen.
Das Problem ist - ich muss genau wissen, wann Arbeit erledigt ist. Deshalb - nur anrufen:
ALTER FULLTEXT CATALOG fooCatalog
REBUILD WITH ACCENT_SENSITIVITY = OFF
nicht funktioniert oder ich etwas etwas falsch zu machen. : /
Irgendwelche Ideen?
Lösung
Sie können den Status der Volltext-Indexierung bestimmen, indem die Indizierung Eigenschaften Abfragen wie folgt aus:
SELECT FULLTEXTCATALOGPROPERTY('IndexingCatalog', 'PopulateStatus') AS Status
Tabelle Volltext Populate Der Status
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
Tracking.
5 = Full-text indexing is throttled or pause
Andere Tipps
Da ich noch nicht auf Magnus' Antwort kommentieren (mangelnde Reputation), werde ich es hier hinzufügen. Ich fand, dass es einen Konflikt von Informationen über MSDN ist nach
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