The Movie Database サポート

It would be helpful if the search API had an option to limit matches to the exact query string given.

Also, it would be nice to have the option of limiting the number of results returned... I'm thinking 'limit: 1' primarily, which would return a single result instead of an array, but there may be other uses :)

Cheers, Tim

2 replies (on page 1 of 1)

Jump to last post

if limit: 1 returns a single object, will be a pain in the a** for the most of developers out there.

you will need more code for parsing, and deserialization, which is bad. Consider a single endpoint service that will return a List of Movies, and when you provide limit 1, instead of a list will return to you a movie, boom get a deserialization error. Having to return an array with a single object thought , it would be fine.

It would be helpful if the search API had an option to limit matches to the exact query string given.

The search service is getting completely re-written later this year and it will be designed to support extra parameters like this.

Also, it would be nice to have the option of limiting the number of results returned... I'm thinking 'limit: 1' primarily, which would return a single result instead of an array, but there may be other uses :)

I am not sure I'll ever support custom page sizes but regardless, the results field is just an array. If you are only interested in the first results, it's easy enough to only grab that single object.

映画やテレビ番組が見つかりませんか?ログインして作成してください。

全般

s 検索バーに移動する
p プロファイルメニューを開く
esc 開いているウィンドウを閉じる
? キーボードショートカットウィンドウを開く

メディアのページ

b 戻る(または該当する場合は親に)
e 編集ページに行く

テレビ番組のシーズンのページ

(右矢印)次のシーズンに行く
(左矢印)前のシーズンに戻る

テレビ番組のエピソードのページ

(右矢印)次のエピソードに進む
(左矢印)前のエピソードに戻る

全ての画像のページ

a 画像追加ウィンドウを開く

全ての編集ページ

t 翻訳選択を開く
ctrl+ s フォームを送信する

ディスカッションのページ

n 新しいディスカッションを作成する
w 監視ステータスを切り替える
p 公開/非公開を切り替える
c 閉じる/開くを切り替える
a アクティビティを開く
r ディスカッションに返信
l 最後の返事に行く
ctrl+ enter メッセージを送信する
(右矢印)次のページ
(左矢印)前のページ

設定

このアイテムを評価したり、リストに追加したりしたいですか?

ログイン

メンバーではありませんか?

登録してコミュニティに参加