Skip to content

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