Consider the following example.
CREATE ALIAS IF NOT EXISTS FT_INIT FOR "org.h2.fulltext.FullText.init"; CALL FT_INIT(); DROP TABLE IF EXISTS TEST; CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR); INSERT INTO TEST VALUES(1, 'Hello World'); CALL FT_CREATE_INDEX('PUBLIC', 'TEST', NULL);
and I performed the following request
SELECT * FROM FT_SEARCH('Hello', 0, 0);
But this query returns "PUBLIC". "TEST" WHERE "ID" = 1 .
- Do I have to execute this
"PUBLIC"."TEST" WHERE "ID"=1 again to get an entry containing the word βHelloβ? - What is the query to search all records with "ell" in them from FT_Search. e.g. like% ell% in H2 Full Full Text Search
Vivek
source share