Recent Topics

1 Jul 05, 2007 10:59    

Hi, everyone. I am Noz, nice to meet you.
May I ask you?

When I try to make search plugin which execute full text searching,
I got lost in the sea of codes.
I cannot find any hook while default searching.
As you know, default search is instantiated in b2 is written line in 307, inc/_blog_main.inc.php as ItemList-object.

$MainList = & new ItemList(
                $blog, $show_statuses, $p, $m, $w, $cat, $catsel, $author, $order,
                $orderby, $posts, $paged, $poststart, $postend, $s, $sentence, $exact,
                $preview, $unit, $timestamp_min, $timestamp_max, $title, $dstart );

$S is the keywords posted from index.php to be parameter of the object.
In the class of ItemList, I can find no space to insert a call-back of new plugin I want to build attempting to make new query as full text indexing.

If you have any idea about hook while searching or adviceses,
would you tell me that?

Thank you :D


Form is loading...