Displaying 1 result from an estimated 1 matches for "postrow".
2008 Jan 15
7
PHP indexing, what's the PHP method for indexscript
...d=sample
How can I create the same indexing using PHP?
With this, I can get an searchable index, but I have no idea how to set the fields, so that I can actually GET something back (with the underneath code, I just get a bunch of pid's back).
$doc = new XapianDocument();
$doc->set_data($postrow['pid']);
$doc->add_value(1,date('Ymd',$postrow['postdate']));
$doc->add_value(2,$postrow['author_id']);
$doc->add_term("XAUTHORID".$postrow["author_id"]);
$doc->add_term("XAUTHORNAME".$postrow["forum_id"]...