When setting up the filter type in views if you select Grouped Filters and try and apply the changes Drupal throws the following error:

PHP Fatal error:  Call to undefined method Drupal\\search_api\\Plugin\\views\\filter\\SearchApiFulltext::operators() in /var/www/build/html/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php on line 630

Once the error is thrown you are unable to switch back to Single Filter or Apply, Cancel or remove the filter from the pop-over. You have to delete the filter and re-create it.

Components:
Search_api: Alpha 14,
Search_api_solr: Alpha 3

Comments

ndrake_WD created an issue. See original summary.

ndrake86’s picture

Version: 8.x-1.0-alpha13 » 8.x-1.0-alpha14
ndrake86’s picture

drunken monkey’s picture

Version: 8.x-1.0-alpha14 » 8.x-1.x-dev
Component: General code » Views integration
Status: Active » Needs review
StatusFileSize
new1.71 KB

Thanks a lot for reporting this problem!
I could easily reproduce it and the cause and solution were also quickly apparent.
Please see whether the attached patch works for you, too!

ndrake86’s picture

I will test here shortly and get back to you.

Thanks @drunken monkey

ndrake86’s picture

@Druken Monkey. Tested and the issue I was seeing previously is gone with this patch.

I do see a warning error,

The "views_page:test_search_page__page_1" plugin does not exist

But it does not hamper the ability to do anything and could be a related to something else completely.

Nick

ndrake86’s picture

Status: Needs review » Reviewed & tested by the community

  • drunken monkey committed 1c6955c on 8.x-1.x
    Issue #2719679 by drunken monkey: Fixed "Grouped filter" mode for Views...
drunken monkey’s picture

Status: Reviewed & tested by the community » Fixed

Good to hear, thanks for testing!
Committed.

The warning does seem unrelated, yes. Did you try clearing the cache, and updating to the latest dev versions of Search API and (if applicable) Facets? This appears to be related to #2648260: Add a "display" plugin type to list all known search pages.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.