Using SingleStore version 7.5.11 I’m trying to create a column table with FullText feature for two fields one is a VARCHAR while the other one is TEXT datatype.
CREATE TABLE ftextsearch (
id INT UNSIGNED,
msg VARCHAR(512) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
cause TEXT,
KEY (id) USING CLUSTERED COLUMNSTORE,
FULLTEXT(cause,msg)
);
I got the following error
CREATE TABLE ftextsearch ( id INT UNSIGNED, msg VARCHAR(512) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, cause TEXT, KEY (id) USING CLUSTERED COLUMNSTORE, FULLTEXT(cause,msg) ) ERROR 1706 ER_MEMSQL_FEATURE_LOCKDOWN: Feature ‘FULLTEXT KEY with unsupported type’ is not supported by SingleStore.
After cheking my code and SingleStore documentation. It seems that I’m not able to create a fulltext index for TEXT datatype.
The following SQL statement is working fine
CREATE TABLE ftextsearchs (
id INT UNSIGNED,
msg VARCHAR(512) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
cause TEXT,
KEY (id) USING CLUSTERED COLUMNSTORE,
FULLTEXT(msg)
);
CREATE TABLE ftextsearch (
id INT UNSIGNED,
msg VARCHAR(512) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
cause TEXT,
KEY (id) USING CLUSTERED COLUMNSTORE,
FULLTEXT(cause,msg)
);
works for me on 7.5.11 on a fresh install.
Do you have any variables set to non-default settings? What is your setting for default_table_type? Mine was set to columntore.
Thank you for your feedback. You are right if you are using fulltext with VARCHAR data types it works. But as mention in my previous message FULLTEXT does not work with TEXT, LONGTEXT and MEDIUMTEXT data type.
CREATE TABLE ftextsearch (
id INT UNSIGNED,
msg VARCHAR(512) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
cause TEXT,
KEY (id) USING CLUSTERED COLUMNSTORE,
FULLTEXT(cause,msg)
);
For me it returns:
ERROR 1706 ER_MEMSQL_FEATURE_LOCKDOWN: Feature ‘FULLTEXT KEY with unsupported type’ is not supported by SingleStore.
SELECT *
FROM c_contacts
WHERE (MATCH(fname, mname, lname) AGAINST ('John' IN BOOLEAN MODE))
AND (MATCH(fname, mname, lname) AGAINST ('Smith' IN BOOLEAN MODE));