# |
Sep 22nd 2011, 10:38 |
ujjain |
[Telefoonnummer] => Array([q] => Ziggo) |
# |
Sep 22nd 2011, 10:38 |
diverdude |
dakota, i will have some heavy searching...so i thought about employing lucene or sphinx...dont know how well they integrate with cake though |
# |
Sep 22nd 2011, 10:38 |
ujjain |
$this->set('results',$this->Telefoonnummer->search($this->data['Telefoonnummer']['q'])); |
# |
Sep 22nd 2011, 10:37 |
Section58 |
to filter the results for index actions |
# |
Sep 22nd 2011, 10:37 |
ujjain |
/telefoonnummers/search submits to /telefoonnummers/search |
# |
Sep 22nd 2011, 10:37 |
dakota |
diverdude: never used it. but I've heard good things about it |
# |
Sep 22nd 2011, 10:37 |
Section58 |
the fun stuff should be in the app controller |
# |
Sep 22nd 2011, 10:37 |
ujjain |
it submits to itself. |
# |
Sep 22nd 2011, 10:37 |
diverdude |
dakota, do you recommend lucene? |
# |
Sep 22nd 2011, 10:37 |
Section58 |
i don't know how searchable works so i can only work of basic logical replys |
# |
Sep 22nd 2011, 10:37 |
Section58 |
might have something to do with it |
# |
Sep 22nd 2011, 10:36 |
Section58 |
see where the form part is submitting too |
# |
Sep 22nd 2011, 10:36 |
ujjain |
no errors on search form, no results though. |
# |
Sep 22nd 2011, 10:35 |
ujjain |
http://www.codepad.eu/view/16622071 |
# |
Sep 22nd 2011, 10:34 |
ujjain |
and search_index is empty table |
# |
Sep 22nd 2011, 10:34 |
ujjain |
but I am trying to run the indexer, I thought I had to, because without gives no results |
# |
Sep 22nd 2011, 10:34 |
Section58 |
you would have to submit a form first |
# |
Sep 22nd 2011, 10:34 |
ujjain |
oh wait, of course, I am not submitting data look |
# |
Sep 22nd 2011, 10:34 |
ujjain |
empty array... |
# |
Sep 22nd 2011, 10:33 |
Section58 |
if nothing is in that array, your form is broken |
# |
Sep 22nd 2011, 10:33 |
Section58 |
debug($this->data) to see how its pushing thu your app |
# |
Sep 22nd 2011, 10:32 |
Section58 |
i guess its not set |
# |
Sep 22nd 2011, 10:32 |
Section58 |
with $this->data in the front ofc |
# |
Sep 22nd 2011, 10:32 |
ujjain |
Notice (8): Undefined index: Telefoonnummer [APP/models/telefoonnummer.php, line 8] |
# |
Sep 22nd 2011, 10:32 |
Section58 |
yes |
# |
Sep 22nd 2011, 10:32 |
ujjain |
wouldn't that be ['Telefoonnummer']['name']? |
# |
Sep 22nd 2011, 10:31 |
ujjain |
$index = $this->data['Comment']['text']; |
# |
Sep 22nd 2011, 10:31 |
ujjain |
hmm, I want to index Telefoonnummer.name |
# |
Sep 22nd 2011, 10:31 |
Section58 |
then there is your answer |
# |
Sep 22nd 2011, 10:31 |
rchavik |
cakedc search is the shit! |
# |
Sep 22nd 2011, 10:31 |
Section58 |
i don't technicly use it |
# |
Sep 22nd 2011, 10:31 |
Section58 |
i installed it like once |
# |
Sep 22nd 2011, 10:31 |
ujjain |
Section58: do you use searchable? |
# |
Sep 22nd 2011, 10:31 |
dakota |
nope |
# |
Sep 22nd 2011, 10:31 |
Section58 |
its just one big mash of plguin in my head |
# |
Sep 22nd 2011, 10:30 |
ujjain |
dakota: requires no more plugins? |
# |
Sep 22nd 2011, 10:30 |
Section58 |
it might have been another one |
# |
Sep 22nd 2011, 10:30 |
dakota |
the cakedc search plugin works awesome :) |
# |
Sep 22nd 2011, 10:28 |
Section58 |
there is probably a lack of docs for it as well |
# |
Sep 22nd 2011, 10:28 |
Section58 |
the cakedc has the downside of having bits missing, and having errors all over it on first load |
# |
Sep 22nd 2011, 10:27 |
Section58 |
if you know what your doing tho, you can strip that out |