My classmate told me that I have to index my word and deffinition to make it searchable but I'm not sure how? Do I index both fields? What about my id field?
You probably don't need word to be text since the longest word is floccinaucinihilipilification, make it varchar(255) or replace 255 with whatever the maxlength you want for a word. That will search a lot quicker.
Also, if they are only looking up words and not searching by defnition, then you don't need to index the definition.
You can also specify how many characters are included in the index.
If your field is 255 characters long it is unlikely that someone would type a lot of letters to search on, they may type 10? 20? characters, so just include that many in your index.