Skip to content
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

rake jupiter:reindex does not reindex Communities and Collections #2444

Closed
pgwillia opened this issue Jul 26, 2021 · 0 comments
Closed

rake jupiter:reindex does not reindex Communities and Collections #2444

pgwillia opened this issue Jul 26, 2021 · 0 comments

Comments

@pgwillia
Copy link
Member

Describe the bug

Reported by @henryzhang87

The solr8-test was installed with solr 6.6.6, and was populated with Jupiter 2 dataset,
the rake task was started from era-app-stg-1.library.ualberta.ca. solr8-test is a temporary single virtual
machine running on our VMWare server.

When I searched from https://era-app-stg-1.library.ualberta.ca/ for the term "Edmonton",
it returned 1571 items. I clicked the page tabs for Collections and Communities, both have
no items present.

I did the same thing on https://era.library.ualberta.ca/, but there are 1558 items, and 35 and 13 for
Collections and Communities respectively. The discrepancy for "Items" is due to the out of sync
between prod and staging which is comprehensible. For the Communities and Collections,
I am not certain if it is caused by the solr, or they are not indexed at all, and need separate indexing operations.

To Reproduce
Steps to reproduce the behavior:

  1. Start with a fresh seeded index
docker-compose down -v
docker-compose up -d
rails db:setup
  1. Click on 'Search' from the front page of the application
  2. Observe there are 219 Items, 22 Collections and 18 Communities
  3. Clear the Solr index
curl -X POST -H 'Content-Type: application/json' 'http://localhost:8983/solr/development/update' --data-binary '{ "delete": { "query":"*:*" }, "commit": {} }'
  1. Run rake jupiter:reindex
  2. Refresh the 'Search' page in you browser
  3. Observer there are 219 Items, 0 Collections and 0 Communities.

Expected behavior
rake jupiter:reindex will rebuild all the parts of the search index, including Communities and Collections.

Additional context
Related to ##1782

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant