<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for m i k e  b r e v o o r t</title>
	
	<link>http://mike.brevoort.com</link>
	<description>life technology etc</description>
	<lastBuildDate>Fri, 05 Mar 2010 22:56:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CommentsForMIKEBREVOORT" /><feedburner:info uri="commentsformikebrevoort" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><item>
		<title>Comment on Grails Solr Plugin Progress Screencast by Sam Mefford</title>
		<link>http://mike.brevoort.com/2010/03/03/grails-solr-plugin-progress-screencast/comment-page-1/#comment-497</link>
		<dc:creator>Sam Mefford</dc:creator>
		<pubDate>Fri, 05 Mar 2010 22:56:03 +0000</pubDate>
		<guid isPermaLink="false">http://mike.brevoort.com/?p=242#comment-497</guid>
		<description>Oops, struggling to post my comment, please delete the last one if possible.  Here's my real comment: 
 
I would definitely steer clear from one record with multiple languages in the one record . . . otherwise it might be hard to avoid false positive matches on fields containing text from the wrong language.   
 
Localization is much more interesting than translation, so make the assumption that for each record there may not be an equivalent translation.  For example, while a site might be translated into two languages, each language may have a different set of pages, so not every page has a direct translated analogue. 
 
Each record could only have text in one language and have fields indicating the language and relevant locale(s) so results can be filtered by language or locale. </description>
		<content:encoded><![CDATA[<p>Oops, struggling to post my comment, please delete the last one if possible.  Here&#039;s my real comment: </p>
<p>I would definitely steer clear from one record with multiple languages in the one record . . . otherwise it might be hard to avoid false positive matches on fields containing text from the wrong language.   </p>
<p>Localization is much more interesting than translation, so make the assumption that for each record there may not be an equivalent translation.  For example, while a site might be translated into two languages, each language may have a different set of pages, so not every page has a direct translated analogue. </p>
<p>Each record could only have text in one language and have fields indicating the language and relevant locale(s) so results can be filtered by language or locale.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Grails Solr Plugin Progress Screencast by Bjoern Wilmsmann</title>
		<link>http://mike.brevoort.com/2010/03/03/grails-solr-plugin-progress-screencast/comment-page-1/#comment-492</link>
		<dc:creator>Bjoern Wilmsmann</dc:creator>
		<pubDate>Fri, 05 Mar 2010 04:37:06 +0000</pubDate>
		<guid isPermaLink="false">http://mike.brevoort.com/?p=242#comment-492</guid>
		<description>That would be great :) </description>
		<content:encoded><![CDATA[<p>That would be great <img src='http://mike.brevoort.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Grails Solr Plugin Progress Screencast by Mike</title>
		<link>http://mike.brevoort.com/2010/03/03/grails-solr-plugin-progress-screencast/comment-page-1/#comment-491</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 05 Mar 2010 03:22:13 +0000</pubDate>
		<guid isPermaLink="false">http://mike.brevoort.com/?p=242#comment-491</guid>
		<description>Yes, got it, just been busy. I'll respond to your email. Maybe we can hook up on Skype next week and sync up on thoughts/direction. </description>
		<content:encoded><![CDATA[<p>Yes, got it, just been busy. I&#39;ll respond to your email. Maybe we can hook up on Skype next week and sync up on thoughts/direction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Grails Solr Plugin Progress Screencast by Mike</title>
		<link>http://mike.brevoort.com/2010/03/03/grails-solr-plugin-progress-screencast/comment-page-1/#comment-493</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 04 Mar 2010 23:46:46 +0000</pubDate>
		<guid isPermaLink="false">http://mike.brevoort.com/?p=242#comment-493</guid>
		<description>Would love to decrease the verbosity.  I just implemented a call on the result object so you can do this: 
 
result.facet(Solr1, "astring").values 
 
I also want to create a collection of taglibs for constructing style-able search UI. For example: 
 &lt;solr:facet field="genre"/&gt; 
 &lt;solr:facet field="year"/&gt; 
 &lt;solr:search autocomplete="true"/&gt; 
 &lt;solr:results pageSize="10"/&gt; 
 </description>
		<content:encoded><![CDATA[<p>Would love to decrease the verbosity.  I just implemented a call on the result object so you can do this: </p>
<p>result.facet(Solr1, &quot;astring&quot;).values </p>
<p>I also want to create a collection of taglibs for constructing style-able search UI. For example:<br />
 &lt;solr:facet field=&quot;genre&quot;/&gt;<br />
 &lt;solr:facet field=&quot;year&quot;/&gt;<br />
 &lt;solr:search autocomplete=&quot;true&quot;/&gt;<br />
 &lt;solr:results pageSize=&quot;10&quot;/&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Grails Solr Plugin Progress Screencast by Mike</title>
		<link>http://mike.brevoort.com/2010/03/03/grails-solr-plugin-progress-screencast/comment-page-1/#comment-490</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 04 Mar 2010 21:20:42 +0000</pubDate>
		<guid isPermaLink="false">http://mike.brevoort.com/?p=242#comment-490</guid>
		<description>Thanks Marc,  The solrTitle method is called on index of the domain and the result of this is stored in the corresponding Solr document under the 'title' field.  In my example, you could get the value of the title from the result as ${item.title} 
 
You can override this also if you have an attribute in your domain named title.  
 
And then further, you can define overrides for how it indexes fields by defining methods like indexSolr&lt;attribute_name&gt; like this: 
 
  def indexSolrTitle(doc) { 
    doc.addField(this.solrFieldName("title"), title?.toUpperCase()) 
  } 
 
This would also allow you to index the attribute multiple times so if you had a way to resolve the translation for an attribute you might do something like this. 
 
  def indexSolrTitle(doc) { 
    doc.addField("title_es_s), getSpanishTitle()) 
    doc.addField("title_en_s), getEnglishTitle) 
    doc.addField("title_fr_s), getFrenchTitle) 
  } 
 
What do you think? I need to think through the i18n use cases a bit more. Any suggestions for how you would like it to work? </description>
		<content:encoded><![CDATA[<p>Thanks Marc,  The solrTitle method is called on index of the domain and the result of this is stored in the corresponding Solr document under the &#039;title&#039; field.  In my example, you could get the value of the title from the result as ${item.title} </p>
<p>You can override this also if you have an attribute in your domain named title.  </p>
<p>And then further, you can define overrides for how it indexes fields by defining methods like indexSolr&lt;attribute_name&gt; like this: </p>
<p>  def indexSolrTitle(doc) {<br />
    doc.addField(this.solrFieldName(&quot;title&quot;), title?.toUpperCase())<br />
  } </p>
<p>This would also allow you to index the attribute multiple times so if you had a way to resolve the translation for an attribute you might do something like this. </p>
<p>  def indexSolrTitle(doc) {<br />
    doc.addField(&quot;title_es_s), getSpanishTitle())<br />
    doc.addField(&quot;title_en_s), getEnglishTitle)<br />
    doc.addField(&quot;title_fr_s), getFrenchTitle)<br />
  } </p>
<p>What do you think? I need to think through the i18n use cases a bit more. Any suggestions for how you would like it to work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Grails Solr Plugin Progress Screencast by Bjoern Wilmsmann</title>
		<link>http://mike.brevoort.com/2010/03/03/grails-solr-plugin-progress-screencast/comment-page-1/#comment-489</link>
		<dc:creator>Bjoern Wilmsmann</dc:creator>
		<pubDate>Wed, 03 Mar 2010 23:21:54 +0000</pubDate>
		<guid isPermaLink="false">http://mike.brevoort.com/?p=242#comment-489</guid>
		<description>I've sent you an eMail a few days ago. It'd be great if we could work together / contribute in one way or another. Please let me know your thoughts. </description>
		<content:encoded><![CDATA[<p>I&#039;ve sent you an eMail a few days ago. It&#039;d be great if we could work together / contribute in one way or another. Please let me know your thoughts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Grails Solr Plugin Progress Screencast by Roshan SHrestha</title>
		<link>http://mike.brevoort.com/2010/03/03/grails-solr-plugin-progress-screencast/comment-page-1/#comment-487</link>
		<dc:creator>Roshan SHrestha</dc:creator>
		<pubDate>Wed, 03 Mar 2010 21:40:55 +0000</pubDate>
		<guid isPermaLink="false">http://mike.brevoort.com/?p=242#comment-487</guid>
		<description>I see that there are two Solr plugin in &lt;a href="http://grails.org/plugin/," rel="nofollow"&gt;http://grails.org/plugin/,&lt;/a&gt; "Solr" and "GSolr". Any relation?  </description>
		<content:encoded><![CDATA[<p>I see that there are two Solr plugin in <a href="http://grails.org/plugin/," rel="nofollow"></a><a href="http://grails.org/plugin/" rel="nofollow">http://grails.org/plugin/</a>, &quot;Solr&quot; and &quot;GSolr&quot;. Any relation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Grails Solr Plugin Progress Screencast by Mike Hugo</title>
		<link>http://mike.brevoort.com/2010/03/03/grails-solr-plugin-progress-screencast/comment-page-1/#comment-486</link>
		<dc:creator>Mike Hugo</dc:creator>
		<pubDate>Wed, 03 Mar 2010 19:53:32 +0000</pubDate>
		<guid isPermaLink="false">http://mike.brevoort.com/?p=242#comment-486</guid>
		<description>Awesome work Mike!   
 
Could solrAutoIndex be a global property?  For instance ALWAYS reindex domain classes by default?  And then maybe have a way to disable it globally (for bulk inserts) 
 
The ability to hit the solr instance directly and test queries is really cool.  I especially like the ability to see how many items are indexed. 
 
Would be neat to wrap SolrQuery so that it could take a params map like .list() and .findBy() dynamic methods to facilitate pagination - so you could do  
def query = new SolrQuery(params.q, params) 
you could then look for offset and max in the params map and automatically do the pagination rather than the if statements you had in the controller 
 
A solr paginate tag library that wraps the g.paginate would also be neat to have 
 
Great work - looks really powerful!  Can't wait to try it out </description>
		<content:encoded><![CDATA[<p>Awesome work Mike!   </p>
<p>Could solrAutoIndex be a global property?  For instance ALWAYS reindex domain classes by default?  And then maybe have a way to disable it globally (for bulk inserts) </p>
<p>The ability to hit the solr instance directly and test queries is really cool.  I especially like the ability to see how many items are indexed. </p>
<p>Would be neat to wrap SolrQuery so that it could take a params map like .list() and .findBy() dynamic methods to facilitate pagination &#8211; so you could do<br />
def query = new SolrQuery(params.q, params)<br />
you could then look for offset and max in the params map and automatically do the pagination rather than the if statements you had in the controller </p>
<p>A solr paginate tag library that wraps the g.paginate would also be neat to have </p>
<p>Great work &#8211; looks really powerful!  Can&#39;t wait to try it out</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Grails Solr Plugin Progress Screencast by Marc Palmer</title>
		<link>http://mike.brevoort.com/2010/03/03/grails-solr-plugin-progress-screencast/comment-page-1/#comment-483</link>
		<dc:creator>Marc Palmer</dc:creator>
		<pubDate>Wed, 03 Mar 2010 16:50:14 +0000</pubDate>
		<guid isPermaLink="false">http://mike.brevoort.com/?p=242#comment-483</guid>
		<description>Nice work, I'm really interested in using Solr to replace Searchable/Compass in our Grails apps. One immediate question - solrTitle looks like it would be ugly make it i18n aware... isn't there a way to render the title in results in the view layer using data from the result object? </description>
		<content:encoded><![CDATA[<p>Nice work, I&#39;m really interested in using Solr to replace Searchable/Compass in our Grails apps. One immediate question &#8211; solrTitle looks like it would be ugly make it i18n aware&#8230; isn&#39;t there a way to render the title in results in the view layer using data from the result object?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Grails Solr Plugin Progress Screencast by Mike</title>
		<link>http://mike.brevoort.com/2010/03/03/grails-solr-plugin-progress-screencast/comment-page-1/#comment-488</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 03 Mar 2010 16:33:04 +0000</pubDate>
		<guid isPermaLink="false">http://mike.brevoort.com/?p=242#comment-488</guid>
		<description>No relation to GSolr, I hadn't seen that... Suspect it is new.&lt;br /&gt;&lt;br /&gt;Sent from my iphone </description>
		<content:encoded><![CDATA[<p>No relation to GSolr, I hadn&#039;t seen that&#8230; Suspect it is new.</p>
<p>Sent from my iphone</p>
]]></content:encoded>
	</item>
</channel>
</rss>
