17.07.2015 Views

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 11: FileTableLanguage supportLanguage support for semantic search is more limited than for full-text indexing. Byquerying the sys.fulltext_semantic_languages catalog view, a list <strong>of</strong> supportedlanguages can be obtained.Add a semantic search indexTo add semantic search to the full-text index created in Listing 11-29, refer to the code inListing 11-31.ALTER FULLTEXT INDEX ON DocumentsALTER COLUMN file_streamADD Statistical_SemanticsListing 11-31:Create a semantic search index on an existing full-text index.Execute a semantic queryBy way <strong>of</strong> example, we will execute a semantic query on the Documents FileTableto identify keywords in a file called Resume.docx in the root folder <strong>of</strong> the FileTable(Listing 11-32).-- Find the key value <strong>of</strong> the document to useDECLARE @path_locator HIERARCHYIDSELECT @path_locator = path_locatorFROM DocumentsWHERE name = 'Resume.docx'AND path_locator.GetLevel() = 1433

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!