- Issue created by @trackleft2
- 🇦🇹Austria drunken monkey Vienna, Austria
I already did something like this a few years ago for the Apachesolr module → , see #254565-4: Integrate with Views front-end → . It is definitely possible: you have to define a new filter plugin for the view, execute your search in there and then use the result item IDs to filter the view.
The main problem with this approach is that it performs absolutely horribly so isn’t suited for anything but pretty small sites. Also, things like facets won’t work correctly as the search doesn’t contain the other filters you put on the view.
Architecturally, it makes zero sense to do it this way and wherever possible you should just create a Search API view instead.That being said, in reality there are of course lots of specialized plugins provided for Views by other modules that aren‘t compatible with Search API views so there are views that cannot easily be rebuilt as a Search API view. If that is the case, and the site is small enough, then something like this could indeed make sense.
I’m leaving this open for now. If enough people express their support and there’s someone willing to implement it we might actually add something like this.