Readthedocs.org: Search index not updated after renaming/moving of a page

Created on 13 Aug 2019  路  12Comments  路  Source: readthedocs/readthedocs.org

5845 renames APIv3 Design Document from Design of APIv3 to APIv3 Design Document but the search results still contains both results.

Related link: https://docs.readthedocs.io/en/latest/index.html?rtd_search=apiv3

Screenshot from 2019-08-13 21-23-29

Bug replication

Most helpful comment

Our issue has been fixed after the release. Thank you!

All 12 comments

There is this error on sentry, maybe related to this issue

update or delete on table "projects_importedfile" violates foreign key constraint "sphinx_domains_sphin_html_file_id_a0307e9f_fk_projects_" on table "sphinx_domains_sphinxdomain"

It happens here

https://github.com/readthedocs/readthedocs.org/blob/e53af663c0996303c249743123b92ae886c1734f/readthedocs/projects/tasks.py#L1640-L1647

https://sentry.io/organizations/read-the-docs/issues/1144425753/?project=148442&query=is%3Aunresolved&statsPeriod=14d

Not sure if this is related, but for https://docs.fluxcd.io, we also notice that renamed files and files removed from git aren't removed from the index.

E.g. first result for this search: https://docs.fluxcd.io/en/latest/search.html?q=ignore&check_keywords=yes&area=default

@hiddeco
I think wiping the version and then rebuilding the docs should fix the problem.
You can find the steps for it here: https://docs.readthedocs.io/en/stable/guides/wipe-environment.html

@dojutsu-user already did this before I commented, without any effect.

Thanks @stsewd for flagging this still-open issue. We're observing this on the great expectations docs (https://great-expectations.readthedocs.io/en/latest/). Searching for a moved page shows both the new (working) and broken link. I have tried wiping and rebuilding to no effect.

Also affecting https://kedro.readthedocs.io, most of the search queries show the broken links first, since we've moved some stuff around.

@dojutsu-user Can you please confirm if the bug is actually fixed for you?
Nothing changed for our project.

It's fixed but it's not deployed yet.

Do we have a status on the deployment of the possible fix by chance?

@madelyngreyes it's already deployed. If you still have this problem, you should try rebuilding the version.

Our issue has been fixed after the release. Thank you!

The issue was fixed on our end as well, thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PowerKiKi picture PowerKiKi  路  4Comments

lennartkoopmann picture lennartkoopmann  路  4Comments

boscorelly picture boscorelly  路  4Comments

humitos picture humitos  路  4Comments

krzychb picture krzychb  路  4Comments