sql server - Fulltext show the matching word in a multi-word search condition with OR -


i have full-text indexed table , column full-text indexed contains list of ids , other information.

example:

searchinformation 100, 101, 102, 103, 104, mike 200, 201, 202, 203, 204, john 

and full-text query (a simplified version) is:

select searchinformation table t1     inner join containstable(searchtable, searchinformation, '"100" or "110" or "mick"') k         on t1.id = k.[key] 

now, query identifies correct row due "100" value being matched, there way show / select value has been matched search conditions?

in case, want select value of 100 query. have looked full-text documentation , i'm not sure if possible or if maybe additional changes in table , query design.

so, i'm looking result set similar to:

searchinformation                    matchfound 100, 101, 102, 103, 104, mike        100 

i have approach each id number associated mike or john in single row, below, then, after match can directly take matched value id column.

searchinformation    id 100, mike            100 101, mike            101 102, mike            102 103, mike            103 200, john            200 201, john            201 

but change use mentioned design, if possible. know previous approach terribly non-relational, i'm curious if it's possible.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -