Skip to content

Commit

Permalink
update slt test
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzq50 committed Dec 26, 2024
1 parent dc4d82f commit f9ac5d8
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions test/sql/dql/fulltext/fulltext.slt
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,58 @@ SELECT doctitle, docdate, ROW_ID(), SCORE() FROM sqllogic_test_enwiki SEARCH MAT
----
Anarchism 30-APR-2012 03:25:17.000 6 27.133215

# only phrase
query TTIR rowsort
SELECT doctitle, docdate, ROW_ID(), SCORE() FROM sqllogic_test_enwiki SEARCH MATCH TEXT ('body^5', '"social customs"', 'topn=3;block_max=compare;bm25_param_delta_term=1.0');
----
Anarchism 30-APR-2012 03:25:17.000 6 27.133215

# only phrase
query TTIR rowsort
SELECT doctitle, docdate, ROW_ID(), SCORE() FROM sqllogic_test_enwiki SEARCH MATCH TEXT ('body^5', '"social customs"', 'topn=3;block_max=compare;bm25_param_delta_phrase=0.5');
----
Anarchism 30-APR-2012 03:25:17.000 6 40.859940

# only phrase
query TTIR rowsort
SELECT doctitle, docdate, ROW_ID(), SCORE() FROM sqllogic_test_enwiki SEARCH MATCH TEXT ('body^5', '"social customs"', 'topn=3;block_max=compare;bm25_param_delta_phrase=1.0');
----
Anarchism 30-APR-2012 03:25:17.000 6 54.586658

# only phrase
query TTIR rowsort
SELECT doctitle, docdate, ROW_ID(), SCORE() FROM sqllogic_test_enwiki SEARCH MATCH TEXT ('body^5', '"social customs"', 'topn=3;block_max=compare;bm25_param_delta_phrase=4.0');
----
Anarchism 30-APR-2012 03:25:17.000 6 136.946991

# phrase and term
query TTIR rowsort
SELECT doctitle, docdate, ROW_ID(), SCORE() FROM sqllogic_test_enwiki SEARCH MATCH TEXT ('body^5', '"social customs" harmful', 'topn=3');
----
Anarchism 30-APR-2012 03:25:17.000 0 22.299635
Anarchism 30-APR-2012 03:25:17.000 6 27.133215

# phrase and term
query TTIR rowsort
SELECT doctitle, docdate, ROW_ID(), SCORE() FROM sqllogic_test_enwiki SEARCH MATCH TEXT ('body^5', '"social customs" harmful', 'topn=3;block_max=compare;bm25_param_delta_term=1.0');
----
Anarchism 30-APR-2012 03:25:17.000 0 43.298161
Anarchism 30-APR-2012 03:25:17.000 6 27.133215

# phrase and term
query TTIR rowsort
SELECT doctitle, docdate, ROW_ID(), SCORE() FROM sqllogic_test_enwiki SEARCH MATCH TEXT ('body^5', '"social customs" harmful', 'topn=3;block_max=compare;bm25_param_delta_phrase=1.0');
----
Anarchism 30-APR-2012 03:25:17.000 0 22.299635
Anarchism 30-APR-2012 03:25:17.000 6 54.586658

# phrase and term
query TTIR rowsort
SELECT doctitle, docdate, ROW_ID(), SCORE() FROM sqllogic_test_enwiki SEARCH MATCH TEXT ('body^5', '"social customs" harmful', 'topn=3;block_max=compare;bm25_param_delta=1.0');
----
Anarchism 30-APR-2012 03:25:17.000 0 43.298161
Anarchism 30-APR-2012 03:25:17.000 6 54.586658

# phrase and term
query TTIR rowsort
SELECT doctitle, docdate, ROW_ID(), SCORE() FROM sqllogic_test_enwiki SEARCH MATCH TEXT ('body^5', '"social customs" harmful', 'topn=3;threshold=25');
Expand Down

0 comments on commit f9ac5d8

Please sign in to comment.