Reply
Visitor
billd
Posts: 6
Registered: 12-04-2009
0

find_videos_by_text not returning all videos.

I am having issues with the find_videos_by_text API method.  I am making this call:

http://api.brightcove.com/services/library?command=find_videos_by_text&text=test&video_fields=ID&token=[token_removed]


and getting back only 1 video, event though I have several 'test' videos that should get returned.

 

Here's the JSON coming back to me:

{"items":[{"id":53252401001}],"page_number":0,"page_size":100,"total_count":-1}

 

Any ideas?

Brightcove Team
BC-dongsheng
Posts: 4
Registered: 02-11-2009

Re: find_videos_by_text not returning all videos.

Just want to remind you that that searching API matches name, short descriptions, or long description against searching terms. 

 

If you want me to help debugging your problem, can you send your token to dwang at brightcove.com? 

 

Dongsheng 

ds
Brightcove Team
BC-ChrisTierney
Posts: 73
Registered: 12-12-2008

Re: find_videos_by_text not returning all videos.

find_videos_by_text will only return videos that are considered playable---upload processing is complete, status is ACTIVE, and scheduling is valid (i.e. start date is null or before today, and end date is null or later than today). If you call find_video_by_id with the id of one of the videos you expect to be returned, do you get a result?

 

Additionally, we had a known search problem recently that has now been fixed. Are you still missing videos if you make the query today?

 

.chris 

Visitor
billd
Posts: 6
Registered: 12-04-2009
0

Re: find_videos_by_text not returning all videos.

I believe it is working now.  However I am currently having the original problem with find_videos_by_tags.

 

Thanks for the quick replies, guys!

 

-Bill

Brightcove Team
BC-ChrisTierney
Posts: 73
Registered: 12-12-2008

Re: find_videos_by_text not returning all videos.

Can you show an example of your find_videos_by_tags query? (No token needed, I just want to see the rest of the params.)
Visitor
billd
Posts: 6
Registered: 12-04-2009
0

Re: find_videos_by_text not returning all videos.

Absolutely...

http://api.brightcove.com/services/library?command=find_videos_by_tags&and_tags=air&token= 

 

 

Glad I didn't post this yet, because it seems to be working now.  Didn't change my code.  Just left and came back.  Wish every bug was like that.  (Did you guys fix anything on your end?)

 

-Bill

(developing the ColdFusion Media API SDK [http://cfbcove.riaforge.org/])

Brightcove Team
BC-ChrisTierney
Posts: 73
Registered: 12-12-2008

Re: find_videos_by_text not returning all videos.

Not that I'm aware of, but it's possible. There's always a delay between when you create/update a video and when it shows up in search results (usually on the order of 15 minutes or so).