Skip to content

Commit

Permalink
add last fts test
Browse files Browse the repository at this point in the history
  • Loading branch information
lnkuiper committed Nov 13, 2024
1 parent a1639ff commit 87237e2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/sql/fts/deliminator.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# name: test/sql/fts/deliminator.test
# description: Test that we do not have a DELIM_JOIN in FTS
# group: [fts]

require fts

require no_alternative_verify

statement ok
CREATE TABLE documents(id VARCHAR, body VARCHAR)

statement ok
INSERT INTO documents VALUES ('doc1', ' QUÁCKING+QUÁCKING+QUÁCKING'), ('doc2', ' BÁRKING+BÁRKING+BÁRKING+BÁRKING'), ('doc3', ' MÉOWING+MÉOWING+MÉOWING+MÉOWING+MÉOWING+999')

statement ok
PRAGMA create_fts_index('documents', 'id', 'body', overwrite=1)

query II
EXPLAIN SELECT score, id, body FROM (SELECT *, fts_main_documents.match_bm25(id, 'quacked barked') AS score FROM documents) sq WHERE score IS NOT NULL ORDER BY score DESC
----
logical_opt <!REGEX>:.*DELIM_JOIN.*

0 comments on commit 87237e2

Please sign in to comment.