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

Check if suggestions are empty and skip if they are. #1

Open
wants to merge 1 commit into
base: 8.x-1.x
Choose a base branch
from

Conversation

damontgomery
Copy link

Applicable for Solr search.

For some reason, when using this module with search_api_solr and search_api_solr_multilingual, if you search for a term that doesn't return any results and doesn't return any suggestions, an error is produced.

Has to do with getFilterMatch() and $suggestion[0]. This fix checks if the suggestion is empty and continues if it is.

@pescetti
Copy link
Member

Thank you! Can we integrate your patch under the GPLv2 (the Drupal license)? I assume this is a "yes", but since we are not on the drupal.org infrastructure it's better to ask.

@pescetti pescetti requested review from haringsrob and removed request for haringsrob July 6, 2017 18:13
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.

2 participants