Skip to content

Commit

Permalink
undo
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Noël <[email protected]>
  • Loading branch information
philippemnoel authored Dec 1, 2024
1 parent 3c7ee64 commit 80efa11
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@ spec:
schema_name => 'public',
table_name => 'mock_items'
);
CREATE INDEX search_idx ON mock_items
USING bm25 (id, description, category, rating, in_stock, created_at, metadata, weight_range)
WITH (key_field='id');
CALL paradedb.create_bm25(
index_name => 'search_idx',
table_name => 'mock_items',
key_field => 'id',
text_fields => paradedb.field('description') || paradedb.field('category'),
numeric_fields => paradedb.field('rating'),
boolean_fields => paradedb.field('in_stock'),
datetime_fields => paradedb.field('created_at'),
json_fields => paradedb.field('metadata'),
range_fields => paradedb.field('weight_range')
);
EOSQL

0 comments on commit 80efa11

Please sign in to comment.