views:

56

answers:

2

Hi,

I'm using the searchable behaviour from the bakery.

It is all set up correctly with no errors, so there is no problem there. However when preforming a search it returns no results. I'm at a loss as to why this is happening because of a lack of any errors.

I think it might have something to do with initial set up or the indexing of the search data. Does sql need to index all of the data at the beginning in order to search it or is there a function I can run to make this index? Something like that?

It would be great if someone can help me out with this (it my first time making a search). Thanks.

+1  A: 

Not sure, but here's an alternative plugin for adding search functionality to your app

neilcrookes
A: 

The current entries in the database needed re-indexing. It was only data added after the behavior functionality was added that showed up in the results. This is actually a pretty good plugin:

http://bakery.cakephp.org/articles/view/search-feature-to-cakephp-blog-example

Smickie