Re: getting Zend Lucene running in CakePHP 1.3

2010-02-13 Thread Jamie
If you want to compare another use of Zend_Search_Lucene and CakePHP,
I wrote a datasource a little while ago. It may give you some ideas:

http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/

On Feb 13, 9:19 pm, Zoltan  wrote:
> Ended up finding this code from the source to the book.cakephp.org
> site:
>
>             if(function_exists('ini_set')){
>                     ini_set('include_path', ini_get('include_path') .
> PATH_SEPARATOR . APP. 'vendors');
>             }
>             App::import('Vendor', 'Zend/Search/Lucene', array('file'
> => 'Zend/Search/Lucene.php'));
>
> and it worked fine.
>
> On Feb 13, 2:32 am, Zoltan  wrote:
>
> > I've been running into a lot of problems getting Zend Framework's
> > Lucene module running.
>
> > Basically what I'm doing is:
>
> > Lucene is in the vendor folder (/Zend/Search/Lucene.php) along with a
> > file in the vendor folder:
>
> >  > // zend_include_path.php
> > ini_set('include_path', ini_get('include_path').dirname(__FILE__)); ?
>
> > I'm importing using:
> > App::import('Vendor', 'zend_include_path'); // the above file
> > App::import('Vendor', 'Zend_Search_Lucene', true, false, 'Zend/Search/
> > Lucene.php');
>
> > I'm running 1.6.2 of Zend because my XAMPP server is running PHP 5.2
>
> > Now it seems like things load ok, but I keep getting this error:
> > "Hex number is too big: 0x1 [CORE\Zend\Search\Lucene\Storage
> > \File.php"
>
> > Any idea what I might be missing?
> > Zoltan

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: getting Zend Lucene running in CakePHP 1.3

2010-02-13 Thread Zoltan
Ended up finding this code from the source to the book.cakephp.org
site:

if(function_exists('ini_set')){
ini_set('include_path', ini_get('include_path') .
PATH_SEPARATOR . APP. 'vendors');
}
App::import('Vendor', 'Zend/Search/Lucene', array('file'
=> 'Zend/Search/Lucene.php'));

and it worked fine.

On Feb 13, 2:32 am, Zoltan  wrote:
> I've been running into a lot of problems getting Zend Framework's
> Lucene module running.
>
> Basically what I'm doing is:
>
> Lucene is in the vendor folder (/Zend/Search/Lucene.php) along with a
> file in the vendor folder:
>
>  // zend_include_path.php
> ini_set('include_path', ini_get('include_path').dirname(__FILE__)); ?
>
>
>
> I'm importing using:
> App::import('Vendor', 'zend_include_path'); // the above file
> App::import('Vendor', 'Zend_Search_Lucene', true, false, 'Zend/Search/
> Lucene.php');
>
> I'm running 1.6.2 of Zend because my XAMPP server is running PHP 5.2
>
> Now it seems like things load ok, but I keep getting this error:
> "Hex number is too big: 0x1 [CORE\Zend\Search\Lucene\Storage
> \File.php"
>
> Any idea what I might be missing?
> Zoltan

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


getting Zend Lucene running in CakePHP 1.3

2010-02-12 Thread Zoltan
I've been running into a lot of problems getting Zend Framework's
Lucene module running.

Basically what I'm doing is:

Lucene is in the vendor folder (/Zend/Search/Lucene.php) along with a
file in the vendor folder:



I'm importing using:
App::import('Vendor', 'zend_include_path'); // the above file
App::import('Vendor', 'Zend_Search_Lucene', true, false, 'Zend/Search/
Lucene.php');

I'm running 1.6.2 of Zend because my XAMPP server is running PHP 5.2

Now it seems like things load ok, but I keep getting this error:
"Hex number is too big: 0x1 [CORE\Zend\Search\Lucene\Storage
\File.php"

Any idea what I might be missing?
Zoltan

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en