Edit

Share via


ISearchCatalogManager3::IsContainsSemanticSupported method (searchapi.h)

Returns a Boolean value that indicates whether the CONTAINSSEMANTIC SQL predicate is supported on the current device.

Syntax

HRESULT IsContainsSemanticSupported(
  [out] BOOL *isContainsSemanticSupported
);

Parameters

[out] isContainsSemanticSupported

TRUE if semantic SQL predicates are supported on the current device; otherwise, FALSE.

Return value

Returns S_OK on success. Otherwise it returns an error code.

Remarks

Starting with Windows 11, build 26100, Windows Search queries can include new SQL syntax that enables searching for semantically-related items. The semantic search syntax includes the CONTAINSSEMANTIC predicate and MERGE operations. Older versions of Windows do not support this syntax. IsContainsSemanticSupported allows apps to confirm that CONTAINSSEMANTIC is supported on the current device before executing queries that use this predicate.

Requirements

Requirement Value
Minimum supported client Windows 11, build 26100
Minimum supported server Windows Server 2025, build 26100
Header searchapi.h