Merged
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Allow 10 minutes from last push for the staging site to build. If the link doesn't work, try using incognito mode instead. For internal reviewers, check web-documentation repo actions for staging build status. Link to build for this PR: http://docs-dev.timescale.com/docs-feat-add-pg-text-search |
tjgreen42
approved these changes
Mar 30, 2026
| ) STORED; | ||
| CREATE INDEX ON documents USING bm25(search_text) WITH (text_config = 'english'); | ||
| ``` | ||
| * **No built-in faceted search**: `pg_textsearch` does not provide dedicated faceting operators. Use standard $PG |
Contributor
There was a problem hiding this comment.
The example involving counts is a little weird. We should just show a query with a WHERE clause that involves filtering based on other columns of the table (e.g., "price < X" or whatever). We should avoid showing WHERE clauses that filter on the numeric value produced by <@>, the robot loves these for some reason but they don't make much practical sense.
Signed-off-by: Erin Mikail Staples <54031531+erinmikailstaples@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
This pull request updates documentation to announce the general availability (GA) of the
pg_textsearchextension (v1.0.0) and revises guidance to reflect its production-ready status. It introduces new features, updated usage examples, configuration options, and clarifies current limitations and best practices for both cloud and self-hosted environments.Major documentation updates for GA release:
pg_textsearchv1.0.0 as production ready, including new features such as thebm25_force_merge()function, implicit query syntax, new GUCs for tuning and debugging, and support for PostgreSQL 17 and 18. [1] [2] [3] [4] [5]Updated usage and best practices:
Query Syntax Improvements:
<@>query syntax and clarified when to use explicit index specification withto_bm25query(), especially in PL/pgSQL contexts. [1] [2] [3] [4]Filtering and Performance Guidance:
New and revised reference content:
bm25query Data Type and Operators:
bm25querydata type, constructor functions, cast syntax, and available operators for advanced query scenarios.Configuration and Maintenance:
segments_per_level,log_scores), force merge operation, and clarified index maintenance and diagnostic functions, including restrictions in production builds. [1] [2] [3]Limitations and deployment:
These changes ensure the documentation accurately reflects the production readiness of
pg_textsearchand provides clear, up-to-date guidance for users deploying and operating the extension.Related Issues
N/A
Checklist before requesting a review