Skip to content
This documentation is sourced from a third-party project and is not maintained by pgEdge.

Installation

  1. Setup development environment.

You can follow the docs about pgvecto.rs.

  1. Install the extension.
cargo pgrx install --sudo --release
  1. Configure your PostgreSQL by modifying search_path to include the extension.
psql -U postgres -c 'ALTER SYSTEM SET search_path TO "$user", public, bm25_catalog'
# You need restart the PostgreSQL cluster to take effects.
sudo systemctl restart postgresql.service   # for vchord_bm25.rs running with systemd
  1. Connect to the database and enable the extension.

sql DROP EXTENSION IF EXISTS vchord_bm25; CREATE EXTENSION vchord_bm25; -->