<?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/"
		>
<channel>
	<title>Comments on: Multi-faceted Searching with the NYTimes APIs</title>
	<atom:link href="http://blog.blprnt.com/blog/blprnt/multi-faceted-searching-with-the-nytimes-apis/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.blprnt.com/blog/blprnt/multi-faceted-searching-with-the-nytimes-apis</link>
	<description>Jer Thorp &#124; There is an art to evolution...</description>
	<lastBuildDate>Mon, 30 Jan 2012 23:06:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: MIchael Lawton</title>
		<link>http://blog.blprnt.com/blog/blprnt/multi-faceted-searching-with-the-nytimes-apis/comment-page-1#comment-3098</link>
		<dc:creator>MIchael Lawton</dc:creator>
		<pubDate>Sun, 19 Dec 2010 01:35:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=635#comment-3098</guid>
		<description>You sir, are a rockstar.  I&#039;m an ecologist/applied mathematician and have been looking into Processing for nice visualization - and I came across your blog.  Your work is totally appreciated.  Now I just have to get all of my R code to play nicely with Processing... </description>
		<content:encoded><![CDATA[<p>You sir, are a rockstar.  I&#039;m an ecologist/applied mathematician and have been looking into Processing for nice visualization &#8211; and I came across your blog.  Your work is totally appreciated.  Now I just have to get all of my R code to play nicely with Processing&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harish ramaswamy</title>
		<link>http://blog.blprnt.com/blog/blprnt/multi-faceted-searching-with-the-nytimes-apis/comment-page-1#comment-2088</link>
		<dc:creator>harish ramaswamy</dc:creator>
		<pubDate>Mon, 13 Sep 2010 10:21:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=635#comment-2088</guid>
		<description>hi 
long back i had tried something close to this with out the use of technology,since it was rare in india to use tech for social sciences. this was more about locational choices for commercial operations. infact in 1996 i wrote a project and got 2lakhs sanctioned for that. i had to let it go to my colleagues as i was posted as the Officer on special  
Duty in the University- though foolish i gave up this project and asked them to do it- they din&#039;t , it was killed . But now i realise how important this is. my imagination has been paid off. I need to learn however the techniques of all this sooner than later. </description>
		<content:encoded><![CDATA[<p>hi<br />
long back i had tried something close to this with out the use of technology,since it was rare in india to use tech for social sciences. this was more about locational choices for commercial operations. infact in 1996 i wrote a project and got 2lakhs sanctioned for that. i had to let it go to my colleagues as i was posted as the Officer on special<br />
Duty in the University- though foolish i gave up this project and asked them to do it- they din&#039;t , it was killed . But now i realise how important this is. my imagination has been paid off. I need to learn however the techniques of all this sooner than later.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blprnt</title>
		<link>http://blog.blprnt.com/blog/blprnt/multi-faceted-searching-with-the-nytimes-apis/comment-page-1#comment-1109</link>
		<dc:creator>blprnt</dc:creator>
		<pubDate>Sun, 13 Sep 2009 23:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=635#comment-1109</guid>
		<description>Hi,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The TimesArticleSearchResult that you get back from any search has an array of TimesResultObject instances representing each story returned. TimesResultObject instances have a field for byline (as well as author, body, date, lead_paragraph, title, etc.)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So, to get the byline of the first article result in the search below, you could do this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;String theByline = r.results[0].byline&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope that helps!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-Jer </description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>The TimesArticleSearchResult that you get back from any search has an array of TimesResultObject instances representing each story returned. TimesResultObject instances have a field for byline (as well as author, body, date, lead_paragraph, title, etc.)</p>
<p>So, to get the byline of the first article result in the search below, you could do this:</p>
<p>String theByline = r.results[0].byline</p>
<p>Hope that helps!</p>
<p>-Jer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TimesFan</title>
		<link>http://blog.blprnt.com/blog/blprnt/multi-faceted-searching-with-the-nytimes-apis/comment-page-1#comment-1108</link>
		<dc:creator>TimesFan</dc:creator>
		<pubDate>Sun, 13 Sep 2009 22:27:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=635#comment-1108</guid>
		<description>hi. COULD YOU HELP ON SOMETHING VERY SIMPLE? 
can you tell us something super simple for non-power users; 
in this great example -- how do you get it to print out a field such as a byline 
 
here is  your code from classes_export --  where I&#039;m trying to get the byline. 
I can see the bylines with a println in process results, but cannot figure out how 
to print it in the main API_Classes_export. 
 
THANKS AHEAD OF TIME! 
 
// addeTimesArticleSearch s = new TimesArticleSearch(); 
s.addQueries(&quot;margiela&quot;); 
s.addFacets(&quot;page_facet&quot;); 
s.addFacetQuery(&quot;publication_year&quot;, &quot;2001&quot;); 
// added 
s.addFields(&quot;byline&quot;);  
TimesArticleSearchResult r = s.doSearch(); 
TimesFacetObject[] pageFacets = r.getFacetList(&quot;page_facet&quot;); 
//added 
//HOW TO GET THE BYLINES???? should be something with TimesResultObject 
println (&quot;There were &quot; + r.total + &quot; articles.&quot;); 
println (&quot;There were &quot; + pageFacets[0].count + &quot; articles on the front page&quot;); </description>
		<content:encoded><![CDATA[<p>hi. COULD YOU HELP ON SOMETHING VERY SIMPLE?<br />
can you tell us something super simple for non-power users;<br />
in this great example &#8212; how do you get it to print out a field such as a byline </p>
<p>here is  your code from classes_export &#8212;  where I&#039;m trying to get the byline.<br />
I can see the bylines with a println in process results, but cannot figure out how<br />
to print it in the main API_Classes_export. </p>
<p>THANKS AHEAD OF TIME! </p>
<p>// addeTimesArticleSearch s = new TimesArticleSearch();<br />
s.addQueries(&quot;margiela&quot;);<br />
s.addFacets(&quot;page_facet&quot;);<br />
s.addFacetQuery(&quot;publication_year&quot;, &quot;2001&quot;);<br />
// added<br />
s.addFields(&quot;byline&quot;);<br />
TimesArticleSearchResult r = s.doSearch();<br />
TimesFacetObject[] pageFacets = r.getFacetList(&quot;page_facet&quot;);<br />
//added<br />
//HOW TO GET THE BYLINES???? should be something with TimesResultObject<br />
println (&quot;There were &quot; + r.total + &quot; articles.&quot;);<br />
println (&quot;There were &quot; + pageFacets[0].count + &quot; articles on the front page&quot;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chandler</title>
		<link>http://blog.blprnt.com/blog/blprnt/multi-faceted-searching-with-the-nytimes-apis/comment-page-1#comment-532</link>
		<dc:creator>chandler</dc:creator>
		<pubDate>Fri, 06 Mar 2009 16:34:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=635#comment-532</guid>
		<description>thanks for the great library. I made a small change that others might find useful. Making addFacet, addFields, addFacetQuery, etc return this, you can chain method calls together. not very java-like, but some may find it easy to read: 
s.addQueries(&quot;terrorism&quot;).addFacets(&quot;page_facet&quot;).addFacetQuery(&quot;publication_year&quot;, &quot;2001&quot;);</description>
		<content:encoded><![CDATA[<p>thanks for the great library. I made a small change that others might find useful. Making addFacet, addFields, addFacetQuery, etc return this, you can chain method calls together. not very java-like, but some may find it easy to read:<br />
s.addQueries(&#8220;terrorism&#8221;).addFacets(&#8220;page_facet&#8221;).addFacetQuery(&#8220;publication_year&#8221;, &#8220;2001&#8243;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jer</title>
		<link>http://blog.blprnt.com/blog/blprnt/multi-faceted-searching-with-the-nytimes-apis/comment-page-1#comment-497</link>
		<dc:creator>Jer</dc:creator>
		<pubDate>Tue, 24 Feb 2009 23:28:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=635#comment-497</guid>
		<description>Hi,

end_date and begin_date are currently implemented like this:

TimesArticleSearch s = new TimesArticleSearch();
s.addExtra(&quot;begin_date&quot;, &quot;20080101&quot;);
s.addExtra(&quot;end_date&quot;, &quot;20090101&quot;);

-Jer</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>end_date and begin_date are currently implemented like this:</p>
<p>TimesArticleSearch s = new TimesArticleSearch();<br />
s.addExtra(&#8220;begin_date&#8221;, &#8220;20080101&#8243;);<br />
s.addExtra(&#8220;end_date&#8221;, &#8220;20090101&#8243;);</p>
<p>-Jer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eneve</title>
		<link>http://blog.blprnt.com/blog/blprnt/multi-faceted-searching-with-the-nytimes-apis/comment-page-1#comment-496</link>
		<dc:creator>eneve</dc:creator>
		<pubDate>Tue, 24 Feb 2009 23:23:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=635#comment-496</guid>
		<description>I may be missing it, but I don&#039;t see any support for the begin_date and end_date parameters.  I tried using addFacetQuery(begin_date, &quot;20080101&quot;) and addFacetQuery(end_date, &quot;20081230&quot;) which didn&#039;t work exactly right (every query returned 0 articles).  Is there support for this?</description>
		<content:encoded><![CDATA[<p>I may be missing it, but I don&#8217;t see any support for the begin_date and end_date parameters.  I tried using addFacetQuery(begin_date, &#8220;20080101&#8243;) and addFacetQuery(end_date, &#8220;20081230&#8243;) which didn&#8217;t work exactly right (every query returned 0 articles).  Is there support for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jer</title>
		<link>http://blog.blprnt.com/blog/blprnt/multi-faceted-searching-with-the-nytimes-apis/comment-page-1#comment-492</link>
		<dc:creator>Jer</dc:creator>
		<pubDate>Mon, 23 Feb 2009 17:37:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=635#comment-492</guid>
		<description>Hi Eneve - yes, I&#039;ve fixed that in the newest version which I hope will be up as a proper library within a week or so.</description>
		<content:encoded><![CDATA[<p>Hi Eneve &#8211; yes, I&#8217;ve fixed that in the newest version which I hope will be up as a proper library within a week or so.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eneve</title>
		<link>http://blog.blprnt.com/blog/blprnt/multi-faceted-searching-with-the-nytimes-apis/comment-page-1#comment-491</link>
		<dc:creator>eneve</dc:creator>
		<pubDate>Mon, 23 Feb 2009 17:32:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=635#comment-491</guid>
		<description>I was getting HTTP response code 400 for all searches where the url contains spaces.  After encoding all spaces to %20 all searches worked for me in Java.  Thanks!

String urlEncodedSpaces = url.replaceAll(&quot;\\s&quot;, &quot;%20&quot;);</description>
		<content:encoded><![CDATA[<p>I was getting HTTP response code 400 for all searches where the url contains spaces.  After encoding all spaces to %20 all searches worked for me in Java.  Thanks!</p>
<p>String urlEncodedSpaces = url.replaceAll(&#8220;\\s&#8221;, &#8220;%20&#8243;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Harris</title>
		<link>http://blog.blprnt.com/blog/blprnt/multi-faceted-searching-with-the-nytimes-apis/comment-page-1#comment-472</link>
		<dc:creator>Jacob Harris</dc:creator>
		<pubDate>Wed, 18 Feb 2009 03:44:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=635#comment-472</guid>
		<description>Yeah, I&#039;m making loads of progress on the nytimes-articles gem for Ruby, so if you&#039;re doing some Ruby hacking, please use it and give me feedback. Thanks! And excellent visualizations!</description>
		<content:encoded><![CDATA[<p>Yeah, I&#8217;m making loads of progress on the nytimes-articles gem for Ruby, so if you&#8217;re doing some Ruby hacking, please use it and give me feedback. Thanks! And excellent visualizations!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

