<?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: Zend_Search_Lucene Datasource for CakePHP</title>
	<atom:link href="http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/</link>
	<description>A PHP web developer writing about the web.</description>
	<lastBuildDate>Mon, 26 Jul 2010 20:07:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jamie</title>
		<link>http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/comment-page-1/#comment-6848</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Tue, 22 Jun 2010 03:23:50 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=512#comment-6848</guid>
		<description>Joseph - can you post your code from config/database.php, and also any relevant code in your models?</description>
		<content:encoded><![CDATA[<p>Joseph &#8211; can you post your code from config/database.php, and also any relevant code in your models?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Le Brech</title>
		<link>http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/comment-page-1/#comment-6842</link>
		<dc:creator>Joseph Le Brech</dc:creator>
		<pubDate>Mon, 21 Jun 2010 10:16:58 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=512#comment-6842</guid>
		<description>I&#039;m struggling with this error message.

Unable to import DataSource class .ZendsearchluceneSource [CORE\cake\libs\model\connection_manager.php, line 186]

have i missed a step somehow?

I&#039;m using 1.3 for this.</description>
		<content:encoded><![CDATA[<p>I&#8217;m struggling with this error message.</p>
<p>Unable to import DataSource class .ZendsearchluceneSource [CORE\cake\libs\model\connection_manager.php, line 186]</p>
<p>have i missed a step somehow?</p>
<p>I&#8217;m using 1.3 for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Umoh</title>
		<link>http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/comment-page-1/#comment-5353</link>
		<dc:creator>David Umoh</dc:creator>
		<pubDate>Mon, 01 Mar 2010 14:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=512#comment-5353</guid>
		<description>i found out its truncating my code so let me put the relevant part:
//above we do the necessary bootstraping, 
//run the database query to get the records then index:
$companies_rec = mysql_query($sql);

while($document = mysql_fetch_object($companies_rec)) {
   // print_r($document);
    // Create a new searchable document instance 
   $doc = new Zend_Search_Lucene_Document();    
    // Add some information 
    $doc-&gt;addField(Zend_Search_Lucene_Field::UnIndexed(&#039;document_id&#039;, $document-&gt;id));     
    $doc-&gt;addField(Zend_Search_Lucene_Field::Text(&#039;document_title&#039;, $document-&gt;company_name));
    $doc-&gt;addField(Zend_Search_Lucene_Field::Text(&#039;document_description&#039;, $document-&gt;description)); 
        // Add the document to the index 
    $index-&gt;addDocument($doc);     
} 
// Commit the index 
$index-&gt;commit();

?&gt;</description>
		<content:encoded><![CDATA[<p>i found out its truncating my code so let me put the relevant part:<br />
//above we do the necessary bootstraping,<br />
//run the database query to get the records then index:<br />
$companies_rec = mysql_query($sql);</p>
<p>while($document = mysql_fetch_object($companies_rec)) {<br />
   // print_r($document);<br />
    // Create a new searchable document instance<br />
   $doc = new Zend_Search_Lucene_Document();<br />
    // Add some information<br />
    $doc-&gt;addField(Zend_Search_Lucene_Field::UnIndexed(&#8216;document_id&#8217;, $document-&gt;id));<br />
    $doc-&gt;addField(Zend_Search_Lucene_Field::Text(&#8216;document_title&#8217;, $document-&gt;company_name));<br />
    $doc-&gt;addField(Zend_Search_Lucene_Field::Text(&#8216;document_description&#8217;, $document-&gt;description));<br />
        // Add the document to the index<br />
    $index-&gt;addDocument($doc);<br />
}<br />
// Commit the index<br />
$index-&gt;commit();</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Umoh</title>
		<link>http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/comment-page-1/#comment-5352</link>
		<dc:creator>David Umoh</dc:creator>
		<pubDate>Mon, 01 Mar 2010 14:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=512#comment-5352</guid>
		<description>addField(Zend_Search_Lucene_Field::UnIndexed(&#039;document_id&#039;, $document-&gt;id)); 
    
    $doc-&gt;addField(Zend_Search_Lucene_Field::Text(&#039;document_title&#039;, $document-&gt;company_name));
    $doc-&gt;addField(Zend_Search_Lucene_Field::Text(&#039;document_description&#039;, $document-&gt;description)); 
     
    // Add the document to the index 
    $index-&gt;addDocument($doc);
    
    
} 

// Commit the index 
$index-&gt;commit();

?&gt;</description>
		<content:encoded><![CDATA[<p>addField(Zend_Search_Lucene_Field::UnIndexed(&#8216;document_id&#8217;, $document-&gt;id)); </p>
<p>    $doc-&gt;addField(Zend_Search_Lucene_Field::Text(&#8216;document_title&#8217;, $document-&gt;company_name));<br />
    $doc-&gt;addField(Zend_Search_Lucene_Field::Text(&#8216;document_description&#8217;, $document-&gt;description)); </p>
<p>    // Add the document to the index<br />
    $index-&gt;addDocument($doc);</p>
<p>} </p>
<p>// Commit the index<br />
$index-&gt;commit();</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Umoh</title>
		<link>http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/comment-page-1/#comment-5351</link>
		<dc:creator>David Umoh</dc:creator>
		<pubDate>Mon, 01 Mar 2010 14:18:54 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=512#comment-5351</guid>
		<description>thanks Jamie, sorry i am reply now, i was kinda on holiday...Pls find below the code i am using to index: I need to know how to use it with your datasource, that is, read the info from the database and pass the results to your indexer: 
addField(Zend_Search_Lucene_Field::UnIndexed(&#039;document_id&#039;, $document-&gt;id)); 
    
    $doc-&gt;addField(Zend_Search_Lucene_Field::Text(&#039;document_title&#039;, $document-&gt;company_name));
    $doc-&gt;addField(Zend_Search_Lucene_Field::Text(&#039;document_description&#039;, $document-&gt;description)); 
     
    // Add the document to the index 
    $index-&gt;addDocument($doc);
    
    
} 

// Commit the index 
$index-&gt;commit();

?&gt;</description>
		<content:encoded><![CDATA[<p>thanks Jamie, sorry i am reply now, i was kinda on holiday&#8230;Pls find below the code i am using to index: I need to know how to use it with your datasource, that is, read the info from the database and pass the results to your indexer:<br />
addField(Zend_Search_Lucene_Field::UnIndexed(&#8216;document_id&#8217;, $document-&gt;id)); </p>
<p>    $doc-&gt;addField(Zend_Search_Lucene_Field::Text(&#8216;document_title&#8217;, $document-&gt;company_name));<br />
    $doc-&gt;addField(Zend_Search_Lucene_Field::Text(&#8216;document_description&#8217;, $document-&gt;description)); </p>
<p>    // Add the document to the index<br />
    $index-&gt;addDocument($doc);</p>
<p>} </p>
<p>// Commit the index<br />
$index-&gt;commit();</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caio Gouveia</title>
		<link>http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/comment-page-1/#comment-5275</link>
		<dc:creator>Caio Gouveia</dc:creator>
		<pubDate>Thu, 25 Feb 2010 14:15:09 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=512#comment-5275</guid>
		<description>You save my day Jamie!!
thanks a lot dude !</description>
		<content:encoded><![CDATA[<p>You save my day Jamie!!<br />
thanks a lot dude !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/comment-page-1/#comment-5260</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Wed, 24 Feb 2010 20:41:01 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=512#comment-5260</guid>
		<description>Sure, David - what does your code look like?</description>
		<content:encoded><![CDATA[<p>Sure, David &#8211; what does your code look like?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Umoh</title>
		<link>http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/comment-page-1/#comment-5236</link>
		<dc:creator>David Umoh</dc:creator>
		<pubDate>Tue, 23 Feb 2010 11:13:50 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=512#comment-5236</guid>
		<description>Thanks Jamie! but i am having some difficulties implementing...i am kinda new to cakephp...i had tried the other tutorial: &#039; Integrating Zend Framework Lucene with your Cake Application&#039; before seeing yours...i had gone as far as successfully creating the index...it worked...the challenge i had was the quering...the code doesnt seem to work with the latest version of cakephp(which is what i am using)...Yours is more recent and better organised...Please how can i pass the index information from mysql database into your datasource....

I could show you the code i am using to index, if that would help....

Thank you very much</description>
		<content:encoded><![CDATA[<p>Thanks Jamie! but i am having some difficulties implementing&#8230;i am kinda new to cakephp&#8230;i had tried the other tutorial: &#8216; Integrating Zend Framework Lucene with your Cake Application&#8217; before seeing yours&#8230;i had gone as far as successfully creating the index&#8230;it worked&#8230;the challenge i had was the quering&#8230;the code doesnt seem to work with the latest version of cakephp(which is what i am using)&#8230;Yours is more recent and better organised&#8230;Please how can i pass the index information from mysql database into your datasource&#8230;.</p>
<p>I could show you the code i am using to index, if that would help&#8230;.</p>
<p>Thank you very much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/comment-page-1/#comment-4655</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Mon, 25 Jan 2010 16:46:13 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=512#comment-4655</guid>
		<description>Well, I can tell you that the first version of the datasource was woefully broken in a few different ways - you should have more success with the current version. Let me know if you&#039;re still having trouble getting it to work.</description>
		<content:encoded><![CDATA[<p>Well, I can tell you that the first version of the datasource was woefully broken in a few different ways &#8211; you should have more success with the current version. Let me know if you&#8217;re still having trouble getting it to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abba Bryant</title>
		<link>http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/comment-page-1/#comment-4653</link>
		<dc:creator>Abba Bryant</dc:creator>
		<pubDate>Mon, 25 Jan 2010 16:26:10 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=512#comment-4653</guid>
		<description>Let me play around with the updated datasource and see if I can spot what I am doing wrong before I post any code.

I was reading about .seg files and Lucene and some issues are known with 32bit php builds. I might be running into that as my local dev seems to break whereas remotely I can (sometimes) get it to index.</description>
		<content:encoded><![CDATA[<p>Let me play around with the updated datasource and see if I can spot what I am doing wrong before I post any code.</p>
<p>I was reading about .seg files and Lucene and some issues are known with 32bit php builds. I might be running into that as my local dev seems to break whereas remotely I can (sometimes) get it to index.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
