PDA

View Full Version : Alternative to fetch_similar_threads


patt1293
01-28-2010, 02:02 AM
Whats the vb4.0 alternative to the function: fetch_similar_threads

Been trying to find it for hours now, its the last thing I need to finish converting a mod to vb 4.0

Thanks in advance.

--------------- Added 1264655383 at 1264655383 ---------------

I tried:

$searchcontroller = vB_Search_Core::get_instance()->get_search_controller();
$thread['similar'] = $searchcontroller->get_similar_threads(convert_urlencoded_unicode($vb ulletin->GPC['title']));


but that returns an empty array, when there are heaps of topics matching.

MrNase
03-14-2010, 04:29 PM
I would like to know this as well.

What I came up with is:

require_once(DIR . '/vb/search/core.php');
$searchcontroller = vB_Search_Core::get_instance()->get_search_controller();
$similarthreads = $searchcontroller->get_similar_threads('test');


Basically, it should find similar threads matching the query 'test' but is an empty Array instead.

I altered the database and changed thread.similar to 1,2,3,4 but that doesn't seem to work either.


Who can point me to the right direction?