11-16-2010 05:34 PM
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.
11-17-2010 08:49 AM
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.
11-24-2010 04:01 PM
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?
11-29-2010 03:42 PM
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.
01-29-2011 01:02 AM
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..