Skip to content

Fix for bug6940. Related pages" links only work intermittently #6

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

paulcadman
Copy link
Contributor

When calling SearchIndexPopulatingPageStore.get to fetch a page, update the search index if the latest rendered contents of the page (possibly modified by changed output of search macros), or attributes have changed.

https://bugs.corefiling.com/show_bug.cgi?id=6940

Paul Cadman added 5 commits March 25, 2014 16:14
is no delete action in the case where the page content is empty, so we
can simplify this get method.

https://bugs.corefiling.com/show_bug.cgi?id=6940
attributes have changed.

We store two maps on the search index:
1. page uid -> rendered content hash
2. page uid -> sorted list of page attrs hash

We check the computed hashes of the page against the stored ones before
updating the index.

https://bugs.corefiling.com/show_bug.cgi?id=6940
the SearchEngine index contains information on the latest rendered copy
of a page.

This method is now independent from the index method, you only need to
check isIndexUpToDate if you're considering indexing a page upon page
GET, not page POST or otherwise.

https://bugs.corefiling.com/show_bug.cgi?id=6940
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant