Common words in searches
Common words in searches
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.
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."
-
- Contributor
- Posts: 149
- Joined: Sun Apr 08, 2007 5:27 am
- Location: Colorado, USA
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.
Edit: Changed examples to phpbb "common" words with three or more letters.
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
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
I found a way to adjust it. Earlier quick glance I must have missed it, sorry guys.
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.
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."
Tested it. Result: The search finds nothing but your last post here.
That was because I didn't index the searches at all, try searching for "google ads" now.
"If it ain't broke don't fix it."
Yippiee, works now. THX.
I looked for a bit, Lanik and finally saw the setting. Good find.
I brought up 8 pages of results for "doubleclick" .. cool.
I brought up 8 pages of results for "doubleclick" .. cool.
"Experience is something you don't get until just after you need it"
-
- Contributor
- Posts: 149
- Joined: Sun Apr 08, 2007 5:27 am
- Location: Colorado, USA
Good work, fellows. Your tenacity has paid off.
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."
Awesome, Lanik. I searches the "code' lines now
"Experience is something you don't get until just after you need it"