We have a semi-large (~11.500) media-library with meta-data fields on (photographer, description, etc). So we use a Search API index of media-items to let our users search through these.

We would love to use a view based on the index in the Media Browser, but because the display- and style plugins only register file_managed as their base, this is impossible. After tweaking the base, I found a few other places where the SQL- and Search API based Query plugins differ, so two other places needed some checks too..

But attached is a patch that enables the Media Browser to use Search API based views as well.


media_enabled-search-api-based-media-browsers.patch2.89 KBfangel
PASSED: [[SimpleTest]]: [MySQL] 0 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


fangel’s picture

Status: Active » Needs review

Whoops, forgot to mark as 'needs review'

ParisLiakos’s picture

Status: Needs review » Fixed

thanks, pretty straightforward.
I just make a few corrections
commit here

Status: Fixed » Closed (fixed)

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