SQL Flow Field Guide

semanticsimilaritytable

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

semantic search rowset

What changes

Input
semantic index of full-text indexed columns
Output or change
rowset (key phrases, similar documents, or shared phrases with scores)

Syntax at a glance

SEMANTICSIMILARITYTABLE ( table , { column | (column_list) | * } , source_key )

Work example

A search feature needs candidate document keys similar to one known indexed document.

Use a small synthetic corpus with one expected match. Confirm the semantic index is populated before comparing rank values.

Check your work semanticsimilaritytable. The expected document key appears and rank is used only to order candidate matches.

Open Microsoft Learn for full syntax, permissions, and details for your version.