Common words in searches

General forum information, announcements, news, questions and suggestions.
Locked
Ares2
Emeritus Contributor
Emeritus Contributor
Posts: 4572
Joined: Thu Sep 27, 2007 12:49 pm

Common words in searches

Post by Ares2 »

Say I want to find topics about Google ads. So I search for "Google ads" but as these words are too common, they are ignored. Same goes for "video", "tracking" etc. - and is somehow annoying. Would be nice if this could be disabled. ;-)
User avatar
LanikSJ
Site Owner
Site Owner
Posts: 1806
Joined: Thu Feb 15, 2007 7:44 am
Location: /dev/null

Post by LanikSJ »

Ares, its one of those things which I can't control from ACP. Most likely something built into phpbb. The easiest way to avoid that is to try and be more specific in your search and ignore the combination of those "common" words.
"If it ain't broke don't fix it."
Alan Baxter
Contributor
Contributor
Posts: 149
Joined: Sun Apr 08, 2007 5:27 am
Location: Colorado, USA

Post by Alan Baxter »

Uh, "video" and "tracking" aren't common words. Those are words like "the", "too", and "and". I think something's broken, Lanik. Compare this result to other phpbb boards, e.g. the mozillazine forums: http://forums.mozillazine.org/search.php. They aren't flagged as "common" words over there.

Edit: Changed examples to phpbb "common" words with three or more letters.
Ares2
Emeritus Contributor
Emeritus Contributor
Posts: 4572
Joined: Thu Sep 27, 2007 12:49 pm

Post by Ares2 »

A quick Google search returned this: http://forum.videolan.org/viewtopic.php?f=10&t=42805.

It seems that common words are defined by the percentage of posts they appear in (default 5%?). This would make sense ("tracking", "video", "ads", etc. are used often here). Maybe you can fix it like they did?

PS: Changed the title
User avatar
LanikSJ
Site Owner
Site Owner
Posts: 1806
Joined: Thu Feb 15, 2007 7:44 am
Location: /dev/null

Post by LanikSJ »

I found a way to adjust it. Earlier quick glance I must have missed it, sorry guys. :oops:

Basically I set the common words threshold to 0% and reindexed all the searches. The downside is searches will take longer until the index is built up again, since every search will not be saved and will have to hit the database. Let me know if it works better now.
"If it ain't broke don't fix it."
Ares2
Emeritus Contributor
Emeritus Contributor
Posts: 4572
Joined: Thu Sep 27, 2007 12:49 pm

Post by Ares2 »

Tested it. Result: The search finds nothing but your last post here.
User avatar
LanikSJ
Site Owner
Site Owner
Posts: 1806
Joined: Thu Feb 15, 2007 7:44 am
Location: /dev/null

Post by LanikSJ »

That was because I didn't index the searches at all, try searching for "google ads" now. :mrgreen:
"If it ain't broke don't fix it."
Ares2
Emeritus Contributor
Emeritus Contributor
Posts: 4572
Joined: Thu Sep 27, 2007 12:49 pm

Post by Ares2 »

Yippiee, works now. :banana: :banana: :banana: THX.
User avatar
rick752
Honorary Member
Honorary Member
Posts: 4508
Joined: Fri Dec 30, 2005 1:02 am
Location: New York, USA

Post by rick752 »

I looked for a bit, Lanik and finally saw the setting. Good find. :D

I brought up 8 pages of results for "doubleclick" .. cool. 8)
"Experience is something you don't get until just after you need it"
Alan Baxter
Contributor
Contributor
Posts: 149
Joined: Sun Apr 08, 2007 5:27 am
Location: Colorado, USA

Post by Alan Baxter »

Good work, fellows. Your tenacity has paid off. :D
User avatar
LanikSJ
Site Owner
Site Owner
Posts: 1806
Joined: Thu Feb 15, 2007 7:44 am
Location: /dev/null

Post by LanikSJ »

Folks I changed the search backend to be database driven and no phpBB any more please test it out for me and let me know if you have any issues. I made some test searches and it seems to be working correctly.
"If it ain't broke don't fix it."
User avatar
rick752
Honorary Member
Honorary Member
Posts: 4508
Joined: Fri Dec 30, 2005 1:02 am
Location: New York, USA

Post by rick752 »

Awesome, Lanik. I searches the "code' lines now :banana:
"Experience is something you don't get until just after you need it"
Locked