SQL Server 2012 Full Text Search on RTF -



SQL Server 2012 Full Text Search on RTF -

i have database running on sql server 2012. 1 column of table contains rtf text. datatype of column nvarchar(max).

i want setup total text search column analyses rtf , searches in real text, don't rtf tags result.

as understand, parsing rtf should part of sql server. don't working :-(

i did following:

create total text catalog select column containing rtf , add together full_text index

but still wrong results

select * mytable contains(myrtfcolumn,'rtf')

--> still columns, 'rtf' keyword

any ideas doing wrong? have activate rtf-search sql server or similar?

a total text search works on text columns. inserting database binary stuff -> rtf. when have chosen nvarchar told sql server want store text, storing binary stuff. binary stuff utilize varbinary(max) instead.

the problem still remain, because index routines don't know how interpret richtext - command chars content.

let talk interpreter/filter

documentation says: https://technet.microsoft.com/en-us/en-en/library/ms142531(v=sql.105).aspx

varbinary(max) or varbinary info single varbinary(max) or varbinary column can store many types of documents. sql server 2008 supports document type filter installed , available in operative system. document type of each document identified file extension of document. example, .doc file extension, full-text search uses filter supports microsoft word documents. list of available document types, query sys.fulltext_document_types catalog view.

note full-text engine can leverage existing filters installed in operating system. before can utilize operating-system filters, word breakers, , stemmers, must load them in server instance, follows:

finally todo:

check if ".rtf" filter available.

exec sp_help_fulltext_system_components 'filter';

then add together calculated column table "typ" returns ".rtf"

alter table yourname add together [typ] (convert([nvarchar](8),'.rtf',0));

this can used index type specification.

sql-server full-text-search rtf

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -