I am trying to add a simple mysql text search to a small table <2000 records.
Please do not tell me to install solr or any other search stones. I tried to run them, and this seems to be one problem after another. One day I will come to him, but today is not this day.
I need to add add_index migration, but when I started
add_index: users,: name,: fulltext
I get an error message. is the key of the indefinite method.
I cannot find any documentation anywhere that explains how to do mysql full-text search in rails.
What is the correct operator that I should use for add_index, and once this is done, do I need something special in my model in order to use full-text search?
source share