-
Notifications
You must be signed in to change notification settings - Fork 82
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
RFC: Search index update/new searcher on auto commit #331
Comments
@silverstripe/core-team could you please express your views on this? The above snippet is what SCP technical documentation suggests (not what was actually merged in #278) even though they mention prior to 3.11 where #278 change was first released. With the community moving more towards Elastic or using different modules for newer versions of Solr, and CWP contract no longer in place, I see lower risk in this change than before. You can 👍 for yes or 👎 for now on this comment, thanks! |
I regression tested this fairly recently using fulltextsearch 3.11.1 - I did NOT include the snippet above in my project, as the linked SCP technical documentation it's on required if you're running less than 3.11.0
My experience was that publishing a page with edits on it did result in it being committed to the solr index, though it took roughly 10 minutes for it to actually appear in the search results. So I don't think we need this RFC since things are working as they should be? |
My experience (and shared experience from other vendors) from several projects is that sometimes the searcher doesn't pick it up at all (it's in the index, but doesn't come up in results) and the snippet above helped. So my question is more about "is the change in the snippet problematic" or "it won't do any harm when used" anyway, so if it helps some sites have results faster, why not have it. |
I'm all in favor of the change, it's just as far as I can tell this change has already been done and is the default i.e. we've already added the snippet
Do you know if they were running fulltextsearch 3.11.0 or above? |
We ran a fork with Chillu's change and what helped in the end was the snippet here, don't know about the other sites, but I can ask this week. |
Just to avoid confusion — the above snippet is different to what is in 3.11.0. Here it's about starting a new searcher whereas in 3.11 we changed the auto soft-commit from never to 10 minutes. |
Oh right, sorry, yes I got confused - #278 added
Which is different from the snippet above + more surprisingly what's in the SCP technical docs says which did mention that you don't need need the snippet if you're on 3.11.0 or above (the docs says change the value of They both do roughly the same thing, though there's differences. Here's an indepth article on Based on the investigation Mateusz previously did - I'm going to make the assumption that there was a fair bit of consideration done at some point on the performance implications of using hard vs soft commits on CWP. I'm somewhat inclined to not change things at this point if things are working, unless we can have some stats to show that making this change won't have an overly negative impact and result in a better search experience |
I have also been investigating an issue today related to the fact the published changes don't affect search results immediately. I can confirm that adding: to my configuration and was actually advised by the SCP support desk to this. Given that the SCP support desk is giving this advise I would suggest the this should be included in the configuration by default. |
Given that this seems to be required, in order for this module to work as expected (with Solr as configured on Silverstripe's own cloud platform), this should really be the default. |
On a SS 4.13 site on Silverstripe Cloud, using the latest 3.x of this module, I can confirm that |
Following on from/coming back to #278 and #274, it seems either something changed in Silverstripe Cloud Platform or the change in the merged PR worked intermittently/by accident, but there were several sites with issues relating to being able to find newly published content changes through the search on sites on SCP. Full reindex works, but publishing a page doesn't cause the content change to become visible in search.
The latest advice from SCP support is to enable the
openSearcher
option within theautoCommit
config, causing the searchers to reload after each auto commit. The setting can be enabled by copying the solrconfig.xml into the project code, adjusting the config there to override the default, and pointing Solr to it to use when configuring the core as a workaround.Should this become the default? Would it have any unwanted implications for systems/platforms, possibly loading up new searchers too many times?
The text was updated successfully, but these errors were encountered: