17.05.2014 Views

PDFlib TET PDF IFilter 4.0 Manual

PDFlib TET PDF IFilter 4.0 Manual

PDFlib TET PDF IFilter 4.0 Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Now you can create the full-text index:<br />

sp_fulltext_database 'enable'<br />

GO<br />

CREATE FULLTEXT CATALOG TestCatalog AS DEFAULT<br />

GO<br />

CREATE FULLTEXT INDEX ON DocumentTable (data TYPE COLUMN extension)<br />

KEY INDEX DocumentTablePK<br />

GO<br />

Dropping and recreating the full-text index.<br />

drop the full-text index:<br />

You can use the following statements to<br />

USE TestDatabase<br />

GO<br />

DROP FULLTEXT INDEX ON DocumentTable<br />

GO<br />

Recreate the full-text index:<br />

USE TestDatabase<br />

CREATE FULLTEXT INDEX ON DocumentTable (data TYPE COLUMN extension)<br />

KEY INDEX DocumentTablePK<br />

GO<br />

Simple and advanced text search.<br />

index:<br />

You can query for individual words in the full-text<br />

SELECT name FROM DocumentTable WHERE CONTAINS(*, 'Watson')<br />

GO<br />

In order to search for a phrase consisting of multiple words enclose the phrase in double<br />

quotes:<br />

SELECT name FROM DocumentTable WHERE CONTAINS(*,'"Arthur Conan Doyle"')<br />

GO<br />

A sample script for performing these steps with the supplied <strong>PDF</strong> samples is installed<br />

with <strong>TET</strong> <strong>PDF</strong> <strong>IFilter</strong>. More information about the CONTAINS predicate in Transact-SQL<br />

can be found at<br />

msdn.microsoft.com/en-us/library/ms187787(SQL.100).aspx<br />

See Section 3.9, »Metadata in SQL Server«, page 58, for metadata queries.<br />

1.4 SQL Server 15

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

Saved successfully!

Ooh no, something went wrong!