Skip to content

Instantly share code, notes, and snippets.

View boris-glumpler's full-sized avatar

Boris Glumpler boris-glumpler

View GitHub Profile
@boris-glumpler
boris-glumpler / BM25.php
Created June 6, 2024 18:49
ParadeDB pg_search bm25 index creation with Laravel/PostgreSQL
<?php
/**
* This class is responsible for creating an index
* @see https://docs.paradedb.com/search/quickstart
*/
declare(strict_types=1);
namespace Database;
{{-- Define all our servers --}}
@servers(['staging' => '', 'production' => ''])
@setup
{{-- The timezone your servers run in --}}
$timezone = 'Europe/Amsterdam';
{{-- The base path where your deployments are sitting --}}
$path = '/var/www/site.com/htdocs';