RefLib

Reference library for AI

Back

postgresql_16:3.9.3 Controlling Text Search

PostgreSQL 16 > The SQL Language > Full Text Search > Controlling Text Search

To implement full text searching there must be a function to create a tsvector from a document and a tsquery from a user query. Also, we need to return results in a useful order, so we need a function that compares documents with respect to their relevance to the query. It's also important to be able to display the results nicely. PostgreSQL provides support for all of these functions.

Subsections

Back