<?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>There is an art to evolution...</description>
	<lastBuildDate>Tue, 09 Mar 2010 14:58:47 -0600</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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(&#8221;terrorism&#8221;).addFacets(&#8221;page_facet&#8221;).addFacetQuery(&#8221;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(&#8221;begin_date&#8221;, &#8220;20080101&#8243;);<br />
s.addExtra(&#8221;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(&#8221;\\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>
	<item>
		<title>By: Manuel</title>
		<link>http://blog.blprnt.com/blog/blprnt/multi-faceted-searching-with-the-nytimes-apis/comment-page-1#comment-469</link>
		<dc:creator>Manuel</dc:creator>
		<pubDate>Mon, 16 Feb 2009 00:26:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=635#comment-469</guid>
		<description>Hey Jer,
i got a basic ruby implementation done. just ported your classes and used a ruby gem (ruby-processing) to do the processing stuff. know i have to dig deeper into processing and get this ruby-processing gem work with rails.

i followed your hint and found a ruby gem. check out this full api implementation on github: http://github.com/harrisj/nytimes-articles/tree/master

i guess it&#039;s pretty easy to port it to java...

will get back to you as soon as i have a working app. thx four sharing your code and inspiring me.</description>
		<content:encoded><![CDATA[<p>Hey Jer,<br />
i got a basic ruby implementation done. just ported your classes and used a ruby gem (ruby-processing) to do the processing stuff. know i have to dig deeper into processing and get this ruby-processing gem work with rails.</p>
<p>i followed your hint and found a ruby gem. check out this full api implementation on github: <a href="http://github.com/harrisj/nytimes-articles/tree/master" rel="nofollow">http://github.com/harrisj/nytimes-articles/tree/master</a></p>
<p>i guess it&#8217;s pretty easy to port it to java&#8230;</p>
<p>will get back to you as soon as i have a working app. thx four sharing your code and inspiring me.</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-468</link>
		<dc:creator>Jer</dc:creator>
		<pubDate>Sun, 15 Feb 2009 18:09:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.blprnt.com/?p=635#comment-468</guid>
		<description>Hi Manuel,

I&#039;m not sure about ruby - I&#039;d check over at the NYTimes developer site. 

The code is pretty rudimentary right now. I&#039;m hoping I&#039;ll have some time over the next little while to put it together into something a bit more cohesive.</description>
		<content:encoded><![CDATA[<p>Hi Manuel,</p>
<p>I&#8217;m not sure about ruby &#8211; I&#8217;d check over at the NYTimes developer site. </p>
<p>The code is pretty rudimentary right now. I&#8217;m hoping I&#8217;ll have some time over the next little while to put it together into something a bit more cohesive.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
