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

Islandora 8 solr search does not work #1452

Closed
pejuko opened this issue Mar 9, 2020 · 7 comments · Fixed by Islandora-Devops/islandora-playbook#170
Closed

Islandora 8 solr search does not work #1452

pejuko opened this issue Mar 9, 2020 · 7 comments · Fixed by Islandora-Devops/islandora-playbook#170

Comments

@pejuko
Copy link

pejuko commented Mar 9, 2020

Steps to reproduce:

git clone https://github.com/Islandora-Devops/islandora-playbook
cd islandora-playbook
vagrant up

With browser go to localhost:8000 log in and create collection, create image in the collection and upload media. Then go to home page and try to search for title of the created collection or the image. There are no results but when you look into solar server both are indexed.

@kayakr
Copy link
Contributor

kayakr commented Mar 9, 2020

I'm seeing the same issue. Fresh Islandora 8 VM, new content is indexed in Solr, but search /solr-search/content?search_api_fulltext=test returns no results. Even entering a blank search returns no results.

@seth-shaw-unlv
Copy link
Contributor

An empty search, in my experience with search_api, always returns no results.

That said, it should pull up your item if you searched for the item's title and it is in the index. I'll see about verifying tomorrow. I was going to today but my fresh CentOS build died.

@kayakr
Copy link
Contributor

kayakr commented Mar 10, 2020

  • Disabling facets, e.g. drush pm:uninstall facets caused the Search to start returning results.
  • Results are returned, even when the search filter is empty, e.g. /solr-search/content?search_api_fulltext=
  • The default search is set to sort by Relevance ASC, but this should be Relevance DESC (e.g. most relevant first)

@seth-shaw-unlv
Copy link
Contributor

Found the issue. We aren't importing all the provided configs on install.

To reproduce:

  1. Provision a fresh box
  2. Create one or more searchable items (collections, items, subjects, etc.)
  3. Search: finds no results

To fix:

  1. Import the search feature by importing differences @ http://localhost:8000/admin/config/development/features/diff/islandora_search
  2. Re-index your site @ http://localhost:8000/admin/config/search/search-api/index/default_solr_index
  3. Search: should now return relevant results

We should update the playbook to make sure all the relevant features are being imported.

@dannylamb
Copy link
Contributor

I betcha I sorted this out in the iCampAZ branch of the playbook. Searching worked for us then.

@dannylamb
Copy link
Contributor

dannylamb commented Mar 10, 2020

Yeah, I sure did: https://github.com/Islandora-Devops/islandora-playbook/compare/iCampAZ
I reworked things in the last two three files to shuffle around what we enabled and import.

@dannylamb
Copy link
Contributor

I'm knee deep in something for ISLE right now, but I'll issue a PR for this.

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 a pull request may close this issue.

4 participants