<?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: CakePHP Searchable Plugin</title>
	<atom:link href="http://www.neilcrookes.com/2009/11/21/cakephp-searchable-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.neilcrookes.com/2009/11/21/cakephp-searchable-plugin/</link>
	<description>Learnings and Teachings on Web Application Development &#38; CakePHP</description>
	<lastBuildDate>Tue, 09 Mar 2010 23:55:11 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Neil Crookes</title>
		<link>http://www.neilcrookes.com/2009/11/21/cakephp-searchable-plugin/comment-page-1/#comment-7808</link>
		<dc:creator>Neil Crookes</dc:creator>
		<pubDate>Fri, 05 Mar 2010 15:24:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=191#comment-7808</guid>
		<description>@foroctfralion I&#039;m not sure what&#039;s wrong off the top of my head. Suggest you do some debugging in the 

plugins/searchable/vendors/build_search_index.php 

file. Specifically the setAvailableModels() method. Add some echos, pr() calls and die()s on a few of the variables to see what&#039;s going on.

The code is well commented so it should be fairly easy to understand what it&#039;s trying to do, and then why it&#039;s not working in your case.

Please come back and leave a comment when you find out.</description>
		<content:encoded><![CDATA[<p>@foroctfralion I&#8217;m not sure what&#8217;s wrong off the top of my head. Suggest you do some debugging in the </p>
<p>plugins/searchable/vendors/build_search_index.php </p>
<p>file. Specifically the setAvailableModels() method. Add some echos, pr() calls and die()s on a few of the variables to see what&#8217;s going on.</p>
<p>The code is well commented so it should be fairly easy to understand what it&#8217;s trying to do, and then why it&#8217;s not working in your case.</p>
<p>Please come back and leave a comment when you find out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: foroctfralion</title>
		<link>http://www.neilcrookes.com/2009/11/21/cakephp-searchable-plugin/comment-page-1/#comment-7804</link>
		<dc:creator>foroctfralion</dc:creator>
		<pubDate>Fri, 05 Mar 2010 14:21:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=191#comment-7804</guid>
		<description>Neil,

I now have cli 5.2.12 running and can access the Build Search Index Shell.  It offers me a choice between either my default database or my test. However Possible Models based on your current database: always returns no results. I have added var $actsAs =&gt; array(&#039;Searchable.Searchable&#039;); to the two models I want searchable.  I have also tried to add the names of the models and &#039;a&#039; for all but I still get nothing.</description>
		<content:encoded><![CDATA[<p>Neil,</p>
<p>I now have cli 5.2.12 running and can access the Build Search Index Shell.  It offers me a choice between either my default database or my test. However Possible Models based on your current database: always returns no results. I have added var $actsAs =&gt; array(&#8216;Searchable.Searchable&#8217;); to the two models I want searchable.  I have also tried to add the names of the models and &#8216;a&#8217; for all but I still get nothing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil Crookes</title>
		<link>http://www.neilcrookes.com/2009/11/21/cakephp-searchable-plugin/comment-page-1/#comment-7793</link>
		<dc:creator>Neil Crookes</dc:creator>
		<pubDate>Thu, 04 Mar 2010 22:08:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=191#comment-7793</guid>
		<description>Yeah - if you are using wamp or xamp or mamp or something, they sometimes install the old cli, or fail to update them or something. Google around for getting those things to use the same version of php for the cli and it should sort your problem. You should definitely be running 5.2.12 on there as well.</description>
		<content:encoded><![CDATA[<p>Yeah &#8211; if you are using wamp or xamp or mamp or something, they sometimes install the old cli, or fail to update them or something. Google around for getting those things to use the same version of php for the cli and it should sort your problem. You should definitely be running 5.2.12 on there as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: foroctfralion</title>
		<link>http://www.neilcrookes.com/2009/11/21/cakephp-searchable-plugin/comment-page-1/#comment-7792</link>
		<dc:creator>foroctfralion</dc:creator>
		<pubDate>Thu, 04 Mar 2010 20:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=191#comment-7792</guid>
		<description>Interesting.  While my php info tells me I&#039;m running PHP 5.2.12 the php -v  states PHP 4.4.9 (cli) (built: Sep 17 2008 12:02:18)

So if I can update my cli then I should be able to run the build_search_index script otherwise I&#039;ll need to make the above modifications?</description>
		<content:encoded><![CDATA[<p>Interesting.  While my php info tells me I&#8217;m running PHP 5.2.12 the php -v  states PHP 4.4.9 (cli) (built: Sep 17 2008 12:02:18)</p>
<p>So if I can update my cli then I should be able to run the build_search_index script otherwise I&#8217;ll need to make the above modifications?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil Crookes</title>
		<link>http://www.neilcrookes.com/2009/11/21/cakephp-searchable-plugin/comment-page-1/#comment-7791</link>
		<dc:creator>Neil Crookes</dc:creator>
		<pubDate>Thu, 04 Mar 2010 20:03:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=191#comment-7791</guid>
		<description>Are you running PHP4? Type &quot;php -v&quot; at your shell prompt or &quot;/path/to/php -v&quot; if php is not a recognised command (&quot;C:\path\to\php -v&quot; if on windows).

Note, sometimes cli (comman line interpreter) versions of php can be different to one you installed as an apache module for example.

What I&#039;m getting at is the cli might be baulking at the &quot;protected&quot; keyword, if so, change all instances of public, protected or private to just var when they precede a class property and just remove them altogether when they precede a method.</description>
		<content:encoded><![CDATA[<p>Are you running PHP4? Type &#8220;php -v&#8221; at your shell prompt or &#8220;/path/to/php -v&#8221; if php is not a recognised command (&#8220;C:\path\to\php -v&#8221; if on windows).</p>
<p>Note, sometimes cli (comman line interpreter) versions of php can be different to one you installed as an apache module for example.</p>
<p>What I&#8217;m getting at is the cli might be baulking at the &#8220;protected&#8221; keyword, if so, change all instances of public, protected or private to just var when they precede a class property and just remove them altogether when they precede a method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: foroctfralion</title>
		<link>http://www.neilcrookes.com/2009/11/21/cakephp-searchable-plugin/comment-page-1/#comment-7790</link>
		<dc:creator>foroctfralion</dc:creator>
		<pubDate>Thu, 04 Mar 2010 19:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=191#comment-7790</guid>
		<description>Neil,

I am trying to get this working but when I go to build the search index I am getting the following error

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or &#039;}&#039; in /home/user/example.com/app/plugins/searchable/vendors/shells/build_search_index.php on line 25

Looking  at the build_search_index.php file line 25 is blank line 24 states protected $_useDbConfig;

I am using cakephp 1.2.6

Any help would be greatly appreciated.</description>
		<content:encoded><![CDATA[<p>Neil,</p>
<p>I am trying to get this working but when I go to build the search index I am getting the following error</p>
<p>Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or &#8216;}&#8217; in /home/user/example.com/app/plugins/searchable/vendors/shells/build_search_index.php on line 25</p>
<p>Looking  at the build_search_index.php file line 25 is blank line 24 states protected $_useDbConfig;</p>
<p>I am using cakephp 1.2.6</p>
<p>Any help would be greatly appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gonzalo</title>
		<link>http://www.neilcrookes.com/2009/11/21/cakephp-searchable-plugin/comment-page-1/#comment-7651</link>
		<dc:creator>Gonzalo</dc:creator>
		<pubDate>Wed, 24 Feb 2010 01:48:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=191#comment-7651</guid>
		<description>Neil, thank you very much for this great plugin. Has been really very useful to me. The tutorial is perfect as well.

I am new to cakePHP and it is great to see that new features are always being added.

Thanks!</description>
		<content:encoded><![CDATA[<p>Neil, thank you very much for this great plugin. Has been really very useful to me. The tutorial is perfect as well.</p>
<p>I am new to cakePHP and it is great to see that new features are always being added.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.neilcrookes.com/2009/11/21/cakephp-searchable-plugin/comment-page-1/#comment-7459</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Mon, 15 Feb 2010 00:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=191#comment-7459</guid>
		<description>I did some basic test in 1.3 and seems pretty good.

When running the build_search_index shell, I got the following errors:

Warning: array_keys(): The first argument should be an array in /app/plugins/searchable/vendors/shells/build_search_index.php on line 113
Warning: current(): Passed variable is not an array or object in /app/plugins/searchable/vendors/shells/build_search_index.php on line 118

However, the rest of the process continued on as normal:

Possible Models based on your current database:
1. Product
Enter one or more numbers from the list above separated by a space, or type in the names of one or more other models, &#039;a&#039; for all or &#039;q&#039; to exit
[q] &gt; 1

The error was in _setDbConfig(), the $config = get_class_vars(&#039;DATABASE_CONFIG&#039;) is empty. Didn&#039;t seem to affect the indexing, though, db table was populated with data as expected.

Also, I needed to modify the SearchIndexesController $helpers array by appending the plugin name to the searchable helper. Eg:
var $helpers = array(&#039;Searchable.Searchable&#039;);

Other than that, seems to work fine. I&#039;ll do some more in-depth testing and let you know of any other issues that come up.

By the way, this is pretty sweet. I was using a modified version of the Zend Lucene search, which is nice, but soooo slow! This is nice and fast to index and query, so that&#039;s nice.</description>
		<content:encoded><![CDATA[<p>I did some basic test in 1.3 and seems pretty good.</p>
<p>When running the build_search_index shell, I got the following errors:</p>
<p>Warning: array_keys(): The first argument should be an array in /app/plugins/searchable/vendors/shells/build_search_index.php on line 113<br />
Warning: current(): Passed variable is not an array or object in /app/plugins/searchable/vendors/shells/build_search_index.php on line 118</p>
<p>However, the rest of the process continued on as normal:</p>
<p>Possible Models based on your current database:<br />
1. Product<br />
Enter one or more numbers from the list above separated by a space, or type in the names of one or more other models, &#8216;a&#8217; for all or &#8216;q&#8217; to exit<br />
[q] &gt; 1</p>
<p>The error was in _setDbConfig(), the $config = get_class_vars(&#8216;DATABASE_CONFIG&#8217;) is empty. Didn&#8217;t seem to affect the indexing, though, db table was populated with data as expected.</p>
<p>Also, I needed to modify the SearchIndexesController $helpers array by appending the plugin name to the searchable helper. Eg:<br />
var $helpers = array(&#8216;Searchable.Searchable&#8217;);</p>
<p>Other than that, seems to work fine. I&#8217;ll do some more in-depth testing and let you know of any other issues that come up.</p>
<p>By the way, this is pretty sweet. I was using a modified version of the Zend Lucene search, which is nice, but soooo slow! This is nice and fast to index and query, so that&#8217;s nice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil Crookes</title>
		<link>http://www.neilcrookes.com/2009/11/21/cakephp-searchable-plugin/comment-page-1/#comment-7427</link>
		<dc:creator>Neil Crookes</dc:creator>
		<pubDate>Sat, 13 Feb 2010 09:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=191#comment-7427</guid>
		<description>@Andy, should be compatible with 1.3, I have not tested it yet though, it shouldn&#039;t take too long to try it, if you get chance, pop back here and let us know how you get on.</description>
		<content:encoded><![CDATA[<p>@Andy, should be compatible with 1.3, I have not tested it yet though, it shouldn&#8217;t take too long to try it, if you get chance, pop back here and let us know how you get on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.neilcrookes.com/2009/11/21/cakephp-searchable-plugin/comment-page-1/#comment-7417</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Fri, 12 Feb 2010 06:23:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=191#comment-7417</guid>
		<description>Hi Neil,

This looks really interesting. Is it (or can it be) compatible with 1.3?</description>
		<content:encoded><![CDATA[<p>Hi Neil,</p>
<p>This looks really interesting. Is it (or can it be) compatible with 1.3?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
