Created
April 8, 2012 18:58
-
-
Save ninetwentyfour/2339198 to your computer and use it in GitHub Desktop.
IndexTank To IndexDen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function add_to_index() { | |
$projects = $this->Project->find('all'); | |
foreach($projects as $project){ | |
$indexData = array('text'=>$project['Project']['title'],'title'=>$project['Project']['title'],'description'=>$project['Project']['description'],'user_id'=>$project['Project']['user_id']); | |
$id = $project['Project']['_id']; | |
$this->addIndextank("HomkoraProjects",$id,$indexData); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment