Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions desktop-src/search/-search-sql-fulltextpredicates.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ ms.date: 05/31/2018

# Full-text predicates

The Microsoft Windows Search query language supports two full-text search predicates. The CONTAINS predicate performs comparisons on columns that contain text. The CONTAINS clause can perform matching on single words or phrases, based on the proximity of the search terms. In comparison, the FREETEXT predicate is tuned to match the meaning of the search phrases against text columns.

The Microsoft Windows Search query language supports two full-text search predicates and one semantic meaning matching predicate.

The CONTAINS predicate performs comparisons on columns that contain text. The CONTAINS clause can perform matching on single words or phrases, based on the proximity of the search terms. In comparison, the FREETEXT predicate helps find documents containing combinations of all the search words spread throughout the content or columns specified.

Note that for majority of full text matching scenarios, <ins>it is highly recommended to use the newer and better tuned FREETEXT predicate</ins>. The CONTAINS predicate exists for backward compatibility, and should be used only on a need-basis for specific use cases.

And finally, the CONTAINSSEMANTIC predicate is tuned to match the _meaning_ of the search phrases against text columns.

This section contains the following topics:

- [CONTAINS Predicate](-search-sql-contains.md)
- [FREETEXT Predicate](-search-sql-freetext.md)
- [CONTAINSSEMANTIC Predicate](-search-sql-containssemantic.md)

## Related topics

Expand Down