Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
What's wrong with the SEARCH ENGINE!
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2011-05-04 19:17:39
Hi Guys,

I have attached a snapshot of the problem... and it explains everything but I was wondering if there would be a way to ENHANCE THE SEARCH ENGINE for TT.  It's only anoying but the RESULTS are weird.

In this example, I have searched for HARRY POTTER... take a look at attachment of the results... Really bad SEARCH ENGINE!  You will probably think that it founds HARRY in the title... but can't it be more precise?

Can anyone help!

Thanx. Regards.

Search_Engine.jpg
Search_Engine.jpg
Unknown User
2011-05-04 20:45:47
I agree. The search engine needs a mayor improvement. I have a feeling it needs to be rebuilt from scratch using newer methods.

I am willing to sponsor the project.
Unknown User
2011-05-05 08:47:08
TT's search uses BOOLEAN MODE so u can use boolean operators such as + - () and i think there are even more but id after check, tt's search works better on keywords rather than the full title so if u had searched Potter that would of probably returned a more accurate search... However if u search this Harry +Potter it will search Harry Potter but only return results that contain Potter and same for the minus that u could do Harry -Potter and u will not see anything related to potter in your search. I will dig deeper into making the search better.

If you have MyISAM as the torrents table type then run the query below for a faster responce time

ALTER TABLE `torrents` ADD FULLTEXT `name` (`name`)
Unknown User
2011-05-05 12:35:08
Hi Djowarth,

Thanx for this follow up...!

Cheers m8.
Unknown User
2011-05-05 12:37:43
The problem is this.

When you search for Potter you get a correct search result listing all torrents with the word potter in the title.

But when you search for Harry.Potter.Movie.No123.HDTV.XviD-SOMETHiNG you get back a search result listing every torrent that contains any of those keywords, aka almost all torrents (XviD for example).

Most users search for the full releaseame or part of it, not a single keyword and experience the search engine as broken.
Unknown User
2011-05-05 13:05:52
Ok looking further on "" is a Boolean Operator so heres the fix.

Open torrents-search.php FIND

$wherea[] = "MATCH (torrents.name) AGAINST ('".mysql_real_escape_string($searchstr)."' IN BOOLEAN MODE)";





Replace with





$wherea[] = "MATCH (torrents.name) AGAINST ('".mysql_real_escape_string('"' . $searchstr . '"')."' IN BOOLEAN MODE)";
Unknown User
2011-05-05 13:07:34
Works perfecty. Thank you Dj your a genius :lol:
Unknown User
2011-05-05 13:27:18
Albert Einstein = E = mc
Unknown User
2011-05-05 13:51:26
"djhowarth, post: 72365":
Ok looking further on "" is a Boolean Operator so heres the fix.
Open torrents-search.php FIND

$wherea[] = "MATCH (torrents.name) AGAINST ('".mysql_real_escape_string($searchstr)."' IN BOOLEAN MODE)";
Replace with




$wherea[] = "MATCH (torrents.name) AGAINST ('".mysql_real_escape_string('"' . $searchstr . '"')."' IN BOOLEAN MODE)";



Hi Djowarth,

Works likes a charm on v 2.06.  It's amazing how a small line of CODE can do! Again, another great enhancement made by dj.  Personally, this should be put by default in the next version of TT and it should be share with the rest of the community!

Thanx. m8.
Unknown User
2011-05-05 14:25:58
thumbsup for everything said above
Unknown User
2011-05-05 14:30:55
Big thank YOU!
Unknown User
2011-05-05 16:16:16
Perfection as usual - Thank You !
Unknown User
2011-05-07 10:58:52
Moved from Premium Section. This can't really be imported into the next release as its set up to work up with the operators however TorrentialStorm may re code the search so hang tight :lol:
Unknown User
2011-05-10 08:15:04
Thank you :lol:
Unknown User
2011-09-28 15:28:30
Thank you really good job ..
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728