-
Notifications
You must be signed in to change notification settings - Fork 0
search bing.rb
TADA Tadashi edited this page Nov 9, 2017
·
2 revisions
Bing APIを使った検索プラグインです(検索プラグインはtDiary 3.0からのサポート)。
search-bing.rbを有効にし、tdiary.confに以下のオプションを設定する。Bing AppIdはDeveloper Centerで作成できる。
@options['search-bing.appid'] = 'あなたのAppId' @options['search.result_filter'] = 日別ページのURLフィルタ
「@options['search.result_filter']」は、例えば「%r|/\d{8}.html$|」と指定することで、検索にかかったURLのうち「YYYYMMDD.html」形式のもの(つまり日別ページ)のみを表示させることができる。
[セキュア不可] など