-
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
Solr typeahead #1537
Solr typeahead #1537
Conversation
Generated by 🚫 Danger |
Ok we need to follow |
@icarito - not sure, i added a new field here, do we need to update the schema when we do that? |
May still need a toggle to switch between solr and non solr, and tests for this service. |
May need a toggle, however.
Not yet using limit...
OK -- so now, this is working (probably, once my last commit runs) but it takes a timeout to determine if Solr is working... which is too long. Here, we only need to know if a Solr service is available and we can toggle between -- but we need to know /fast/. Ideas, @icarito ? |
Here's the toggle area: https://github.com/publiclab/plots2/pull/1537/files#diff-1bc1c213d7a40db44441cd43fd8cd96cR35 It depends on an attempt to run a |
Is there a possibility to just instead of making a pre-query, try the actual query and fallback only if it fails? |
Looking for ideas. |
OK, no longer seeing the timeout, but resolving a failure and some errors. Added a check to ensure solr is not available when the test failure occurs. |
Our plan is to simply monitor publiclab.org/searches/test instead of having a fallback on production. |
We could monitor pad.publiclab.org solr service directly too.
Note also there are two kinds of failures: either Solr is (a) not
listening or (b) not responding. Both will likely fail differently on
the rails side.
…On 24/08/17 13:12, Jeffrey Warren wrote:
Our plan is to simply monitor publiclab.org/searches/test instead of
having a fallback on production.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1537 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMMS9nJibXemPEsBVTdlEyRG5TOHABeks5sbb0FgaJpZM4OXif7>.
|
Well, |
Maybe it's a good opportunity to push to unstable branch and see the
magic happen? ;-)
…On 24/08/17 14:51, Jeffrey Warren wrote:
Well, |solrAvailable| is evaluating to true, but not returning the
blog nodes. Can we reproduce this in an interactive environment to see
why?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1537 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMMS1bVGMchte_9LstgMzxQJ4BzVjprks5sbdRNgaJpZM4OXif7>.
|
Yes, lets. We should be able to use |
They should actually both be for Solr, and I'm wondering if the extra parameters makes it return nothing... we'll see -- if this passes, could you push it to unstable? Thanks! |
I see what you mean! It might very well be, here's the logged query for both cases. I'll push to unstable when it passes.
|
This is odd, and I'm restarting the build -- it looks to be stuck on |
Promising! It returned 2 results instead of 3 for a couple tests. I think that means the Solr query is working now; I adjusted the test assertion to match. Next I can re-enable some of the extra Solr parameters to see which caused the issue... hopefully there are, for example, pagination defaults we can lean on. |
Pushed to unstable! |
Ug! Unstable still doesn't show results. @icarito, could you paste in the most recent solr queries from the logs and we can try to see why no results are returned? |
Huh, interesting! One where query works but not the other? |
OK, so the only line that makes the tests fail is Oh, we don't index that! https://github.com/publiclab/plots2/blob/master/app/models/node.rb#L24-L39 Changing that to see. |
Oh wait, that's weird - we do index that, at least in this branch. Never mind, I'm not sure what's going on here... |
@icarito -- finished this; pushing it to unstable too. |
Already! Wow. Will reindex production then in preparation for deployment.
…On 16/11/17 17:29, Jeffrey Warren wrote:
@icarito <https://github.com/icarito> -- finished this; pushing it to
unstable too.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1537 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMMSzpTuWL4Vr7kVBImWSj_8PrT03fPks5s3LdjgaJpZM4OXif7>.
|
testing it in unstable now. If this passes, can you merge it and push it to stable? Thanks! |
🍔 🔨 🍬 🔥 🎆 |
Reindexing production now in advance of deploying this. |
Reindexing stable too. |
Deployed to production! |
https://publiclab.org/api/typeahead/all?srchString=precocious no results, not sure why |
* Solr typeahead (#1537) * Solr typeahead May need a toggle, however. * Update typeahead_service.rb Not yet using limit... * Update typeahead_service.rb * Update node.rb * Update typeahead_service.rb * Update typeahead_service.rb * Update typeahead_service.rb * service reworking * toggle and test; very slow * note tweak * tweaks * Update typeahead_service.rb * Update typeahead_service.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update and rename test/unit/typeahead_service_test.rb to test/solr/typeahead_service_test.rb * Update typeahead_service_test.rb * Create typeahead_service_test.rb * Update Gemfile * Delete typeahead_service_test.rb * Update typeahead_service_test.rb * Re-disable solr in test mode * Re-add regular test of typeahead and confirm toggle fallback * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update rusers.yml * Update typeahead_service.rb * Re-adding sunspot.yml overwriting * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Testing disabling extra Solr fields * Update typeahead_service_test.rb * Update typeahead_service.rb * Update typeahead_service.rb * Update typeahead_service.rb * Update typeahead.rb * Update restful_typeahead.js * new gemfile
* Solr typeahead May need a toggle, however. * Update typeahead_service.rb Not yet using limit... * Update typeahead_service.rb * Update node.rb * Update typeahead_service.rb * Update typeahead_service.rb * Update typeahead_service.rb * service reworking * toggle and test; very slow * note tweak * tweaks * Update typeahead_service.rb * Update typeahead_service.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update and rename test/unit/typeahead_service_test.rb to test/solr/typeahead_service_test.rb * Update typeahead_service_test.rb * Create typeahead_service_test.rb * Update Gemfile * Delete typeahead_service_test.rb * Update typeahead_service_test.rb * Re-disable solr in test mode * Re-add regular test of typeahead and confirm toggle fallback * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update rusers.yml * Update typeahead_service.rb * Re-adding sunspot.yml overwriting * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Testing disabling extra Solr fields * Update typeahead_service_test.rb * Update typeahead_service.rb * Update typeahead_service.rb * Update typeahead_service.rb * Update typeahead.rb * Update restful_typeahead.js
* Solr typeahead (publiclab#1537) * Solr typeahead May need a toggle, however. * Update typeahead_service.rb Not yet using limit... * Update typeahead_service.rb * Update node.rb * Update typeahead_service.rb * Update typeahead_service.rb * Update typeahead_service.rb * service reworking * toggle and test; very slow * note tweak * tweaks * Update typeahead_service.rb * Update typeahead_service.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update and rename test/unit/typeahead_service_test.rb to test/solr/typeahead_service_test.rb * Update typeahead_service_test.rb * Create typeahead_service_test.rb * Update Gemfile * Delete typeahead_service_test.rb * Update typeahead_service_test.rb * Re-disable solr in test mode * Re-add regular test of typeahead and confirm toggle fallback * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update rusers.yml * Update typeahead_service.rb * Re-adding sunspot.yml overwriting * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Update typeahead_service_test.rb * Testing disabling extra Solr fields * Update typeahead_service_test.rb * Update typeahead_service.rb * Update typeahead_service.rb * Update typeahead_service.rb * Update typeahead.rb * Update restful_typeahead.js * new gemfile
May need a toggle, however, as in #1463
Fixes #1654
rake test:all