Reply
Contributor
Sven
Posts: 21
Registered: ‎10-14-2010
0 Kudos

searching for videos

Hi there,

 

I see the findVideosByText and findVideosByTags methods. How does findVideosByText work in terms of its search algorithm and which BrightCove data fields are searched?

 

I'd really like to be able to offer a single Search function that finds videos based on Description & Tags using keywords that form an AND type of query. I see findVideosByTags will (at least I can guess as much) handle the Tags part but not the Description.

 

Thanks for any info you can provide.

 

Sven

Brightcove Team
BC-SamR
Posts: 384
Registered: ‎12-12-2008
0 Kudos

Re: searching for videos

Taken from the JSON media api docs http://docs.brightcove.com/en/media/#Video_Read, "Searches through all the videos in this account, and returns a collection of videos whose name, short description, or long description contain a match for the specified text. Unlike some other Read methods, this method does not provide parameters for sorting the result set. The result set is sorted by relevance. Consider using the search_videos method, which offers more flexible search and sorting options. This method returns substring matches; thus if your search string is "war" the result set will include results such as "warrier", "warfare", and "warbler."". Hope this helps.

Contributor
Sven
Posts: 21
Registered: ‎10-14-2010
0 Kudos

Re: searching for videos

The search_videos method, as you have described, sounds like it would work.

 

I am using the iOS 2.0.0 library and it does not appear that a facade method to access this call has been provided for. Do you think this omission can be fixed and if so can you please provide an ETA?

 

Thx

Brightcove Team
BC-SamR
Posts: 384
Registered: ‎12-12-2008
0 Kudos

Re: searching for videos

Yikes! Yeah it is missing. I'm not sure what an eta would be, I'll communicate this to the team. If I get an eta I'll post it here. You could use the SBJSON libraries included to make the call directly if you need the method for something now.

Contributor
Sven
Posts: 21
Registered: ‎10-14-2010
0 Kudos

Re: searching for videos

OK great I'll look into going the JSON route for now then. Please do let me know if/when an enhancement is made to take care of this. Thx.

Contributor
Sven
Posts: 21
Registered: ‎10-14-2010
0 Kudos

Re: searching for videos

p.s. it's a missing method in the Android libraries as well.

Brightcove Team
BC-SamR
Posts: 384
Registered: ‎12-12-2008
0 Kudos

Re: searching for videos

Yeah I guessed as much, the android library is a port of the obj c one. Thanks for finding that issue!

Visitor
simpligility1
Posts: 8
Registered: ‎01-19-2011
0 Kudos

Re: searching for videos

Are there any news on this? I am using find video by text for now but the results are lets just say "interesting" sometimes.

 

manfred

Brightcove Team
BC-SamR
Posts: 384
Registered: ‎12-12-2008
0 Kudos

Re: searching for videos

Currently those changes are not hight on our backlog unfortunately. I'll let you know if this changes.

Contributor
simpligility
Posts: 27
Registered: ‎11-30-2010
0 Kudos

Re: searching for videos

The findByText method works ok for us for now. But it would be great to get the search method wrapped as well. As I said before... if your library were open source I could look into implementing it..