DROP TABLE TM_TEXTS;
CREATE COLUMN TABLE TM_TEXTS (
id int PRIMARY KEY,
doc varchar(5000)
);
DROP SEQUENCE TM_ID;
CREATE SEQUENCE TM_ID START WITH 10;
INSERT INTO TM_TEXTS VALUES (TM_ID.NEXTVAL, 'We didn''t start the fire.');
INSERT INTO TM_TEXTS VALUES (TM_ID.NEXTVAL, ':D');
INSERT INTO TM_TEXTS VALUES (TM_ID.NEXTVAL, ':P');
INSERT INTO TM_TEXTS VALUES (TM_ID.NEXTVAL, ':)');
INSERT INTO TM_TEXTS VALUES (TM_ID.NEXTVAL, ';)');
INSERT INTO TM_TEXTS VALUES (TM_ID.NEXTVAL, '=)');
INSERT INTO TM_TEXTS VALUES (TM_ID.NEXTVAL, '(:');
INSERT INTO TM_TEXTS VALUES (TM_ID.NEXTVAL, ':>');
INSERT INTO TM_TEXTS VALUES (TM_ID.NEXTVAL, ':<');
INSERT INTO TM_TEXTS VALUES (TM_ID.NEXTVAL, ':(');
INSERT INTO TM_TEXTS VALUES (TM_ID.NEXTVAL, '>.<');
INSERT INTO TM_TEXTS VALUES (TM_ID.NEXTVAL, '=(');
INSERT INTO TM_TEXTS VALUES (TM_ID.NEXTVAL, ':d');
INSERT INTO TM_TEXTS VALUES (TM_ID.NEXTVAL, ':O');
INSERT INTO TM_TEXTS VALUES (TM_ID.NEXTVAL, 'I love fires.');
SELECT * FROM TM_TEXTS;
DROP FULLTEXT INDEX TM_TEXTS_FTI;
CREATE FULLTEXT Index TM_TEXTS_FTI On TM_TEXTS(doc)
TEXT ANALYSIS ON
CONFIGURATION 'EXTRACTION_CORE_VOICEOFCUSTOMER';
SELECT * FROM "$TA_TM_TEXTS_FTI" WHERE TA_TYPE IN ('WeakPositiveEmoticon', 'StrongPositiveEmoticon', 'WeakNegativeEmoticon', 'StrongNegativeEmoticon');