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: FileTableSemantic searchSemantic search is a new feature in <strong>SQL</strong> <strong>Server</strong> 2012 and allows for writing moreadvanced queries that can include the relationship between words in the FileTablecontents. Scenarios that are enabled by this feature include the automatic extraction<strong>of</strong> key words in a document (to populate a tag cloud, for example) or the creation <strong>of</strong> adocument similarity index to compare documents with each other.An exhaustive discussion <strong>of</strong> the semantic search feature and its linguistic underpinningsis not appropriate for this book. However, we will examine how to:• enable semantic search on a FileTable which already has full-text indexing enabled• write a basic query which identifies keywords in a specified document.Prepare the server for semantic searchBooks Online has a complete discussion <strong>of</strong> the prerequisites for semantic search (http://brurl.com/fs17). During installation, the Full-Text and Semantic Extractions for Searchinstance feature must be selected.After installation, a semantic language statistics database must be installed to the systemand attached to the <strong>SQL</strong> <strong>Server</strong> instance. This database is not installed with <strong>SQL</strong> <strong>Server</strong>2012. Instead, you must execute a separate Windows Installer package to install thedatabase. Afterwards, you must attach the database to your <strong>SQL</strong> <strong>Server</strong> instance.Finally, the semantic language statistics database must be registered by calling thesp_fulltext_semantic_register_language_statistics_db stored procedure,specifying the semantic language statistics database.432

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

Saved successfully!

Ooh no, something went wrong!