Freebase Suggest上的动态mql_filter

时间:2009-09-17 01:48:25

标签: jquery freebase

是否可以动态添加mql_filter来约束Freebase Suggest控件的结果?

$(function() {
    $("#button").onclick(function() {
        // add an mql_filter to #film, a Freebase Suggest control
    });

    $("#film").suggest({type:'/film/film'});
});

1 个答案:

答案 0 :(得分:0)

您可以使用其他mql_filter重新启动建议:

$(function() {
    $("#button").onclick(function() {
        // add an mql_filter to #film, a Freebase Suggest control
        $("film").suggest({type:'/film/film', 
                           mql_filter: ...});

    });

    $("#film").suggest({type:'/film/film'});
});