Saturday, August 1, 2009

Re: A Search Behavior

I have the same problem. Please can someone help? :) [2]

'Undefined variable: Hits [APP\models\behaviors\searchable.php, line
213]'
'Undefined variable: Hits [APP\models\behaviors\searchable.php, line
215]'

Any updates pola, iTodd?
The code differs a bit in thechaw (http://thechaw.com/cakebook/source/
plugins/searchable
) vs the behavior @ assembla.com (http://
www.assembla.com/wiki/show/searchable_behavior)

Anyway, I'll try to find out what's wrong and if I do I'll post an
update.

Thanks

On Jul 27, 11:43 pm, iTodd <tol...@gmail.com> wrote:
> I have the same problem. Please can someone help? :)
>
> Thanx for cakephp!
>
> On 22 jul, 09:31, pola <goo...@artfolio.de> wrote:
>
> > Hi guys...
>
> > I´am struggling to get that lucene thing implemented.
>
> > I read the instructions athttp://www.assembla.com/wiki/show/dF-Zfqzzur3yBfab7jnrAJ
>
> > It looks like i can build the search_index:
>
> > pola@tomahawk:~/stuff/werkbank/cake_1.2.3.8166/cake/console$ ./cakesearchbuild_index -app /home/pola/stuff/werkbank/emmall/generator/
> > trunk/output/
>
> > Notice: Hex number is too big: 0x100000000 in /home/pola/stuff/
> > werkbank/emmall/generator/trunk/output/vendors/Zend/Search/Lucene/
> > Storage/File.php on line 268
> > Notice: Hex number is too big: 0x100000000 in /home/pola/stuff/
> > werkbank/emmall/generator/trunk/output/vendors/Zend/Search/Lucene/
> > Storage/File.php on line 289
> > Notice: Hex number is too big: 0x100000000 in /home/pola/stuff/
> > werkbank/emmall/generator/trunk/output/vendors/Zend/Search/Lucene/
> > Storage/File.php on line 290
> > Notice: Hex number is too big: 0x100000000 in /home/pola/stuff/
> > werkbank/emmall/generator/trunk/output/vendors/Zend/Search/Lucene/
> > Storage/File/Memory.php on line 380
> > Notice: Hex number is too big: 0x100000000 in /home/pola/stuff/
> > werkbank/emmall/generator/trunk/output/vendors/Zend/Search/Lucene/
> > Storage/File/Memory.php on line 401
> > Notice: Hex number is too big: 0x100000000 in /home/pola/stuff/
> > werkbank/emmall/generator/trunk/output/vendors/Zend/Search/Lucene/
> > Storage/File/Memory.php on line 402
> > 8.3
> > Processing Category #16
> > Processed Category #16
> > 16.7
> > ...
> > ...
> > ...
> > Processing Category #28
> > Processed Category #28
> > 100.0
> > Processing Category #29
> > Processed Category #29
> > Optimizing index...
> > Optimized index.
>
> > and the results in the dirs:
>
> > @cake
> > pola@tomahawk:~/stuff/werkbank/cake_1.2.3.8166/cake/console$ ls
> > search_index/
> > optimization.lock.file  _q.cfs  read.lock.file  read-lock-
> > processing.lock.file  segments_17  segments.gen  write.lock.file
>
> > @app
> > pola@tomahawk:~/stuff/werkbank/emmall/generator/trunk/output/tmp$ ls
> > search_index/
> > read.lock.file  segments_1  segments.gen  write.lock.file
>
> > But if i use the newest lucene stuff from zend i get notices like u
> > see allthough above
> > "Hex number is too big: 0x100000000 [APP/vendors/Zend/Search/Lucene/
> > Storage/File.php, line 268]".
>
> > If i use the lucene source fromhttp://thechaw.com/cakebook/itsfine
> > i dont get that notices.
>
> > The Warning i allways get is
> > "Undefined variable: Hits [APP/plugins/searchable/models/behaviors/
> > searchable.php, line 213"]
>
> > Anyways i dont get any results out of thatsearchfunction.
>
> > $this->Model->search($query, $limit, $page)
> > $this->Model->hits_count()
> > $this->Model->terms();
>
> > I reckon i just missed to adjust some tiny noob stuff!?
>
> > Any Ideas or recommendations would be very helpful...
>
> > Thanx a lot for cakephp.
>
> > > It's already implemented & being used on the cookbook as a plugin:
> > >http://thechaw.com/cakebook/source/plugins/searchable
> > > It uses Lucene & the adapter from ZendFramework, and works well
> > > enough.
> > > -j.
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: