<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Auto-suggest with MJT &#8211; two demos</title>
	<atom:link href="http://blog.hamstersoup.com/2007/07/09/auto-suggest-with-mjt-two-demos/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hamstersoup.com/2007/07/09/auto-suggest-with-mjt-two-demos/</link>
	<description>Exploring the next wave of data-driven apps</description>
	<lastBuildDate>Thu, 11 Mar 2010 23:42:30 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Will Moffat</title>
		<link>http://blog.hamstersoup.com/2007/07/09/auto-suggest-with-mjt-two-demos/#comment-774</link>
		<dc:creator>Will Moffat</dc:creator>
		<pubDate>Tue, 10 Jul 2007 22:17:25 +0000</pubDate>
		<guid isPermaLink="false">http://hamstersoup.wordpress.com/2007/07/09/auto-suggest-with-mjt-two-demos/#comment-774</guid>
		<description>Hi Dae, thanks for the code snippet. I&#039;ll try and make some time to make another example using your mjt.Task  It will be interesting to compare the performance.</description>
		<content:encoded><![CDATA[<p>Hi Dae, thanks for the code snippet. I&#8217;ll try and make some time to make another example using your mjt.Task  It will be interesting to compare the performance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daepark</title>
		<link>http://blog.hamstersoup.com/2007/07/09/auto-suggest-with-mjt-two-demos/#comment-770</link>
		<dc:creator>daepark</dc:creator>
		<pubDate>Tue, 10 Jul 2007 00:33:46 +0000</pubDate>
		<guid isPermaLink="false">http://hamstersoup.wordpress.com/2007/07/09/auto-suggest-with-mjt-two-demos/#comment-770</guid>
		<description>Hi Will,
I think Nick&#039;s example is using mql to do prefix matching. We also have an autocomplete service that&#039;s not really documented. If you try autocompleting on freebase.com, you should be able to see the call to that service using firebug. Anyway, I&#039;ve implemented a mjt.Task to do this:

// mjt.Task for /api/service/autocomplete
fb.AutocompleteTask = function(prefix, type, category) {
    mjt.Task.apply(this);
    if (!type) type = &quot;/common/topic&quot;;
    if (!category) category = &quot;instance&quot;;
    this.values = {prefix: prefix, type: type, category: category, 
                    disamb: 1, limit: 10, get_all_types: 0}  // defaults
};
fb.AutocompleteTask.prototype.enqueue = function() {
    var req = this;  // for closure
    var path = &quot;/api/service/autocomplete&quot;;
    mjt.callback_script_get(mjt.service_url, path, this.values,
                            function (o) {
                                mjt.parse_metaweb_script_response(req, o);
                            });    
};</description>
		<content:encoded><![CDATA[<p>Hi Will,<br />
I think Nick&#8217;s example is using mql to do prefix matching. We also have an autocomplete service that&#8217;s not really documented. If you try autocompleting on freebase.com, you should be able to see the call to that service using firebug. Anyway, I&#8217;ve implemented a mjt.Task to do this:</p>
<p>// mjt.Task for /api/service/autocomplete<br />
fb.AutocompleteTask = function(prefix, type, category) {<br />
    mjt.Task.apply(this);<br />
    if (!type) type = &#8220;/common/topic&#8221;;<br />
    if (!category) category = &#8220;instance&#8221;;<br />
    this.values = {prefix: prefix, type: type, category: category,<br />
                    disamb: 1, limit: 10, get_all_types: 0}  // defaults<br />
};<br />
fb.AutocompleteTask.prototype.enqueue = function() {<br />
    var req = this;  // for closure<br />
    var path = &#8220;/api/service/autocomplete&#8221;;<br />
    mjt.callback_script_get(mjt.service_url, path, this.values,<br />
                            function (o) {<br />
                                mjt.parse_metaweb_script_response(req, o);<br />
                            });<br />
};</p>
]]></content:encoded>
	</item>
</channel>
</rss>
