SQL Server のインデックス付きテキスト フィールドで語句を検索するために、contains 述語を使用しています。検索されたフレーズを含むテキスト フィールドの部分、またはその周辺の領域を返す方法はありますか?
たとえば、ゲティスバーグの住所 (以下の抜粋) で「すべての男性は平等に作られている」を検索している場合、「すべての男性は平等に作られているという命題に専念する」、たとえばその周りのテキストを返したいと思います。
Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that *all men are created equal.*
Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this.