Last active
April 25, 2019 05:34
-
-
Save peterkimzz/92a4aa7e2dbed16d26b92a003c878aef to your computer and use it in GitHub Desktop.
Revisions
-
peterkimzz revised this gist
Apr 25, 2019 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,8 @@ ALTER TABLE TABLE_NAME ADD FULLTEXT INDEX ngram_index_name(COLUMN_NAME) WITH PARSER ngram; e.g. ALTER TABLE users ADD FULLTEXT INDEX ngram_users_name(name) WITH PARSER ngram; SELECT u.* FROM users u WHERE MATCH(u.name) AGAINST("peter" IN BOOLEAN MODE) -
peterkimzz revised this gist
Apr 25, 2019 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1,4 @@ ALTER TABLE TABLE_NAME ADD FULLTEXT INDEX ngram_index_name(COLUMN_NAME) WITH PARSER ngram; e.g. ALTER TABLE users ADD FULLTEXT INDEX ngram_users_name(name) WITH PARSER ngram; -
peterkimzz revised this gist
Apr 25, 2019 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1 @@ ALTER TABLE accounts ADD FULLTEXT INDEX ngram_subjects(subjects) WITH PARSER ngram; -
peterkimzz created this gist
Apr 25, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ ``` ALTER TABLE accounts ADD FULLTEXT INDEX ngram_subjects(subjects) WITH PARSER ngram; ```