AFAICS It is currently impossible to have a video search integrated with the other core-provided searches: the only available search is a custom search on the playlists.

On d8, this would require implementing a @SearchPlugin .

Comments

fgm created an issue. See original summary.

justkristin’s picture

Wow - this would be a drawback if one wanted to expose each video to users as pages. :(

aaron.silber’s picture

If you're in a pinch, the Search API will allow you to index Brightcove entities.

fgm’s picture

Status: Active » Needs review
StatusFileSize
new7.41 KB

Actually, I did implement a search plugin for Brightcove on the site where it was needed.

FWIW, here is an adaptation the code I used, in patch form

fgm’s picture

StatusFileSize
new7.41 KB

Grrr, wrong patch.

yce’s picture

Hi,

I think the BrightcoveVideo entities should be queried through the storage itself, so I've done some refactoring on the patch, please check.

I've also updated the BrightcoveVideoInterface with the status constants, so it represents the status more clearly.

Added/updated access check, users with "Administer Brightcove configuration" permission shouldn't get explicit access to (un)published videos in the search results.

Fixed some typos and coding standard issues.

fgm’s picture

Not really dug in the patch, but regarding the wording changes, I think the changes from "and" to "or" are not correct: search will match all of the examples given, so it's really a "and", not a "or". The wording is copied from core, actually.

yce’s picture

Yeah, sorry, I always mess this up with the logical and/or :)

Fixed.

  • 031284a committed on 8.x-2.x
    Issue #2879387 by yce, fgm: Module is missing core search integration
    
yce’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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