I've found that if the user searches for a space ' ', the following error is returned:
The website encountered an unexpected error. Please try again later.
Error: Call to a member function setConjunction() on null in Drupal\search_api\Plugin\views\filter\SearchApiFulltext->query() (line 308 of modules/contrib/search_api/src/Plugin/views/filter/SearchApiFulltext.php).
This is because getParseMode returns NULL if the query should fail, but setConjunction is being performed on it.
I've attached a patch that checks if the query should fail, if TRUE then do not try and set the conjunction.
Comments
Comment #2
mattgill commentedComment #3
drunken monkeyAh, thanks a lot for pointing this out! And more thanks for already providing a patch!
Everywhere else (I hope) we were careful, but seems this slipped through.
However, I think it the query was aborted, we can just do away with that whole method, since it would be pretty pointless at that point.
Patch attached, please test/review!
Comment #4
mattgill commentedYes works for me! Look forward to the next release!!
Comment #6
drunken monkeyGood to hear, thanks for reporting back!
Committed.