[Freebase-discuss] Customizing results from Freebase Suggest
Will Merydith
will.merydith at gmail.com
Sun Mar 6 15:32:50 UTC 2011
Thanks Jason, I think I understand. So here is my existing javascript:
$(function() {
$("#game-search").suggest({type:'/games/game'}).bind("fb-select",
function(e, data) {
$("#game-id").val(data.id);
$("#game-name").val(data.name);
$("#game-mid").val(data.mid);
});
});
Using the filter I would alter my javascript like so?
.suggest({type:'/games/game', 'mql_filter': [{'mid': 'null'}]})
On Sun, Mar 6, 2011 at 12:02 AM, Jason Douglas <jasondouglas at google.com> wrote:
>
> There's some examples of using mql_output on the wiki page:
> http://wiki.freebase.com/wiki/Search#Search_Output
> You specify it in Suggest the same way you do mql_filter as in the examples in the docs (ex 5):
> http://www.freebase.com/docs/suggest
> -jason
>
> On Sat, Mar 5, 2011 at 7:19 PM, Will Merydith <will.merydith at gmail.com> wrote:
>>
>> I'm using the Freebase Suggest javascript library to search Topics from my app. I'd like to get an mid back (currently it returns id and name). In the python code I see the query and add "mid: null" but I cannot figure out how to get it from the response.
>>
>> Anyone attempted to customize data results from Suggest?
>>
>> -Will
>>
>> _______________________________________________
>> You are receiving this message because you are subscribed to the Freebase-discuss mailing list.
>> To post a message to the list: Freebase-discuss at freebase.com
>> To unsubscribe, view archives, etc: http://lists.freebase.com/mailman/listinfo/freebase-discuss
>
More information about the Freebase-discuss
mailing list