-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initial attempt at mysql fulltext search for nodes #1913
Conversation
@icarito I'm unable to get unstable to build this and generate a new schema.rb file with |
ok, got it! used local mysql. |
Generated by 🚫 Danger |
We can later integrate this with plots2/app/services/typeahead_service.rb Line 38 in 111fda5
|
We'd want to later expand it to include node tags... probably in that method i just linked to. |
@icarito -- wow |
Adding a new index for revision title |
I think we're at the point where we need to start removing Solr infrastructure...!! @icarito |
like the solr tests for this typeahead feature |
This seems ready to go except I can't get it to build on unstable due to the |
Tried adding SECRET_KEY_BASE and SECRET_TOKEN env variables but that didn't change anything, looking for what might have changed to need to configure this. |
Ah I think I know what's going on, need to pass the secret across the Dockerfile... making patch |
@jywarren rejiggered! |
Logs are showing this now:
|
Line 127 in a876a84
Aha! It looks like the Revisions table is almost empty. Can we reload the database?
|
Okay I loaded a db dump from september, and the app starts, but when I attempt migration it says:
|
Whoa that was actually the mysql server crashing on migration!
|
Perhaps the container runs out of memory when creating the index? |
Looks similar to this: https://stackoverflow.com/questions/17724636/adding-fulltext-index-crashes-mysql-service - looking for options - seems an instance of this bug: https://bugs.mysql.com/bug.php?id=82665 which suggests upgrading to mysql 5.7 might fix it. Also will consider MariaDB. |
I'll make another pull request with the database upgrade. Note this requires some manual steps when deploying to production as there are maintenance scripts to be run. Mariadb over Mysql selection to be agreed, either should work but possibly harder to switch between them after upgrade. |
Agree, awesome! Let's do this!!
…On Jan 12, 2018 1:56 AM, "Sebastian Silva" ***@***.***> wrote:
I'll make another pull request with the database upgrade. Note this
requires some manual steps when deploying to production as there are
maintenance scripts to be run. Mariadb over Mysql selection to be agreed,
either should work but possibly harder to switch between them after upgrade.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1913 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ53erhAduKuAMRymoho7DhLWOwkTks5tJwISgaJpZM4RST88>
.
|
We do check for |
I think this is ready for merge, to tell the truth -- as soon as the MariaDB stuff is in place. Eager!!! |
|
* Remove Solr stuff and add secret_token env var * Upgrade and switch database engine to Mariadb.
Tested successfully in unstable, now trying it in stable:
|
Deployed to production! |
* initial attempt at mysql fulltext search for nodes * tweak * major rails 4.x update of schema.rb, added fulltext index * Update node.rb * Update node_test.rb * rename * self. * add title to fulltext * plugged into typeahead * rev title fulltext index * fixed fulltext multi index * updated schema example * fix * tweaked working fulltext in console * removing solr test apparatus * full text comment and user bio searching * more conditions * fixes * unique results by grouping by nid * Remove Solr stuff and add secret_token env var (publiclab#259) * Remove Solr stuff and add secret_token env var * Upgrade and switch database engine to Mariadb.
Should resolve several issues, including: