Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why is there no 'search topic title only' option?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Forums Feedback
View previous topic :: View next topic  
Author Message
ezakimak
n00b
n00b


Joined: 11 Nov 2004
Posts: 7

PostPosted: Sat Nov 20, 2004 5:42 pm    Post subject: Why is there no 'search topic title only' option? Reply with quote

currently the search options are only:
search message text only
search message text and topic title.

searching only the topic title would be much more useful in most cases.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20048

PostPosted: Sun Nov 21, 2004 2:12 am    Post subject: Reply with quote

The folks at www.phpbb.com haven't implemented it.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
IvanYosifov
l33t
l33t


Joined: 15 Oct 2004
Posts: 778
Location: Bulgaria

PostPosted: Mon May 09, 2005 6:52 pm    Post subject: Searching by thread title Reply with quote

I am looking at the search function, but it seems to find posts. Can I search for threads, searching the title only ?

Edit: Merged with ezakimak's thread. --Maedhros
Back to top
View user's profile Send private message
JoeR410
n00b
n00b


Joined: 14 Sep 2005
Posts: 28
Location: Burke, VA

PostPosted: Mon Jul 03, 2006 9:14 pm    Post subject: Reply with quote

Searching through the mods on phpBB.com, I found a MOD that says it can modify advanced searching to allow for "search by topic title". Here's the link for the thread describing it, which includes a file which you can DL to unzip and then implement it:
http://www.phpbb.com/phpBB/viewtopic.php?t=298529&sid=b36b06f89d7ca1defb4227e50d3e21a9
I'm gonna see if this works on my site so that I can give a bit more info about it, but I know that my site's implementation of phpBB is a little different than that of the Gentoo Forums, so maybe other people can help test it out too.
Back to top
View user's profile Send private message
JoeR410
n00b
n00b


Joined: 14 Sep 2005
Posts: 28
Location: Burke, VA

PostPosted: Tue Jul 04, 2006 2:44 am    Post subject: Reply with quote

Well, I actually had to modify my forum to where the process of installing should be fairly similar to how it would be on here, except for the fact that you have to have the EasyMOD plugin in order for the script of the Search Title Only MOD to work. But, since I'm sure you guys are good with PHP and such, here's the text of the script, which should be fairly easy to follow if you wanted to make the edits by hand:
Code:
##############################################################
## MOD Title: Search Titles Only
## MOD Author: drathbun < N/A > (Dave Rathbun) http://www.phpBBDoctor.com
## MOD Description:
## MOD Version: 1.0.0
##
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: includes/constants.php, language/lang_english/lang_main.php, templates/subSilver/search_body.tpl, search.php
## Included Files:
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## In the standard phpBB system you can search Titles +
## Message, or Message Only, but not Title Only. This MOD adds
## that functionality.
##############################################################
## MOD History:
##
##   2005-06-01 - Version 1.0.0
##      Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################


#
#-----[ OPEN ]-------------------------------------
#
includes/constants.php


#
#-----[ FIND ]-------------------------------------
#
?>


#
#-----[ BEFORE, ADD ]-------------------------------------
#
// BEGIN Search Titles Only 1.0.0 (www.phpBBDoctor.com)
define(SEARCH_ENTIRE_MESSAGE, 0);
define(SEARCH_MESSAGE_ONLY, 1);
define(SEARCH_TITLE_ONLY, 2);
// END Search Titles Only 1.0.0 (www.phpBBDoctor.com)


#
#-----[ OPEN ]-------------------------------------
#
language/lang_english/lang_main.php


#
#-----[ FIND ]-------------------------------------
#
$lang['Search_msg_only'] = 'Search message text only';


#
#-----[ AFTER, ADD ]-------------------------------------
#
// BEGIN Search Titles Only 1.0.0 (www.phpBBDoctor.com)
$lang['Search_title_only'] = 'Search message title only';
// END Search Titles Only 1.0.0 (www.phpBBDoctor.com)



#
#-----[ OPEN ]-------------------------------------
#
templates/subSilver/search_body.tpl


#
#-----[ FIND ]-------------------------------------
#
      <td class="row2" valign="middle"><span class="genmed"><select class="post" name="search_time">{S_TIME_OPTIONS}</select><br /><input type="radio" name="search_fields" value="all" checked="checked" /> {L_SEARCH_MESSAGE_TITLE}<br /><input type="radio" name="search_fields" value="msgonly" /> {L_SEARCH_MESSAGE_ONLY}</span></td>


#
#-----[ IN-LINE FIND ]-------------------------------------
#
{L_SEARCH_MESSAGE_ONLY}


#
#-----[ IN-LINE AFTER, ADD ]-------------------------------------
#
<br /><input type="radio" name="search_fields" value="titleonly" /> {L_SEARCH_TITLE_ONLY}


#
#-----[ OPEN ]-------------------------------------
#
search.php


#
#-----[ FIND ]-------------------------------------
#
   $search_fields = ( $HTTP_POST_VARS['search_fields'] == 'all' ) ? 1 : 0;



#
#-----[ REPLACE WITH ]-------------------------------------
#
   // BEGIN Search Titles Only 1.0.0 (www.phpBBDoctor.com)
   switch ( $HTTP_POST_VARS['search_fields'] )
   {
      case 'all' :
         $search_fields = SEARCH_ENTIRE_MESSAGE;
         break;
      case 'msgonly' :
         $search_fields = SEARCH_MESSAGE_ONLY;
         break;
      case 'titleonly' :
         $search_fields = SEARCH_TITLE_ONLY;
         break;
      default :
         $search_fields = SEARCH_ENTIRE_MESSAGE;
         break;
   }
   // END Search Titles Only 1.0.0 (www.phpBBDoctor.com)



#
#-----[ FIND ]-------------------------------------
#
   $search_fields = 0;


#
#-----[ REPLACE WITH ]-------------------------------------
#
   // BEGIN Search Titles Only 1.0.0 (www.phpBBDoctor.com)
   $search_fields = SEARCH_ENTIRE_MESSAGE;
   // END Search Titles Only 1.0.0 (www.phpBBDoctor.com)



#
#-----[ FIND ]-------------------------------------
#
         $search_msg_only = ( !$search_fields ) ? "AND m.title_match = 0" : ( ( strstr($multibyte_charset, $lang['ENCODING']) ) ? '' : '' );



#
#-----[ REPLACE WITH ]-------------------------------------
#
         // BEGIN Search Titles Only 1.0.0 (www.phpBBDoctor.com)
         $search_word_sql = ( $search_fields == SEARCH_MESSAGE_ONLY ) ? "AND m.title_match = 0" : '' ;
         $search_word_sql = ( $search_fields == SEARCH_TITLE_ONLY ) ? "AND m.title_match = 1" : $search_word_sql ;
         // END Search Titles Only 1.0.0 (www.phpBBDoctor.com)



#
#-----[ FIND ]-------------------------------------
#
                     $sql = "SELECT m.post_id
                        FROM " . SEARCH_WORD_TABLE . " w, " . SEARCH_MATCH_TABLE . " m
                        WHERE w.word_text LIKE '$match_word'
                           AND m.word_id = w.word_id
                           AND w.word_common <> 1
                           $search_msg_only";



#
#-----[ REPLACE WITH ]-------------------------------------
#
                     // BEGIN Search Titles Only 1.0.0 (www.phpBBDoctor.com)
                     $sql = 'SELECT    m.post_id
                        FROM    ' . SEARCH_WORD_TABLE . ' w
                        ,    ' . SEARCH_MATCH_TABLE . " m
                        WHERE w.word_text LIKE '$match_word'
                        AND m.word_id = w.word_id
                        AND w.word_common <> 1
                           $search_word_sql";
                     // END Search Titles Only 1.0.0 (www.phpBBDoctor.com)



#
#-----[ FIND ]-------------------------------------
#
                     $search_msg_only = ( $search_fields ) ? "OR post_subject LIKE '$match_word'" : '';


#
#-----[ REPLACE WITH ]-------------------------------------
#
                     // BEGIN Search Titles Only 1.0.0 (www.phpBBDoctor.com)
                     // The following code sets up the search of the actual post, given
                     // the words found in the prior search
                     switch ( $search_fields )
                     {
                        case SEARCH_MESSAGE_ONLY :
                           $search_sql = '';
                           break;
                        case SEARCH_ENTIRE_MESSAGE :
                           $search_sql = "OR post_subject LIKE '$match_word'";
                           break;
                        case SEARCH_TITLE_ONLY :
                           $search_sql = "AND post_subject LIKE '$match_word'";
                           break;
                        default :
                           $search_sql = '';
                     }
                     // END Search Titles Only 1.0.0 (www.phpBBDoctor.com)



#
#-----[ FIND ]-------------------------------------
#
                        $search_msg_only";


#
#-----[ REPLACE WITH ]-------------------------------------
#
                        $search_sql";



#
#-----[ FIND ]-------------------------------------
#
   'L_SEARCH_MESSAGE_TITLE' => $lang['Search_title_msg'],


#
#-----[ AFTER, ADD ]-------------------------------------
#
   // BEGIN Search Titles Only 1.0.0 (www.phpBBDoctor.com)
   'L_SEARCH_TITLE_ONLY' => $lang['Search_title_only'],
   // END Search Titles Only 1.0.0 (www.phpBBDoctor.com)


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Tue Jul 04, 2006 12:08 pm    Post subject: Reply with quote

That won't work as our search.php is already heavily modified. I've already implemented a search tittle only option in the new search engine. The main problem at the moment is lack of time, I'm currently working late and at the weekends to finish a project for work. When that's done I can concentrate on the new search engine again.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
all-inc.
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2004
Posts: 138
Location: Darmstadt.Germany.EU

PostPosted: Sat Dec 30, 2006 5:10 pm    Post subject: Reply with quote

bump!
this topic is now 0.5 years old...PLEASE add this option, it can't be that hard to implement it, but without this option the search modus is often senseless... then the same questions will be postet again and again and everyone becomes angry!!!
please, admins, concentrate your mindpower to relevant things... :wink:

THANK YOU!!!

greetz, all-inc.
_________________
# make config; not war
registered linux user # 265707
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Sat Dec 30, 2006 5:17 pm    Post subject: Reply with quote

all-inc. wrote:
bump!
this topic is now 0.5 years old...PLEASE add this option, it can't be that hard to implement it, but without this option the search modus is often senseless... then the same questions will be postet again and again and everyone becomes angry!!!
please, admins, concentrate your mindpower to relevant things...

The post above you is still valid and answers your request.
_________________
KDE
Back to top
View user's profile Send private message
all-inc.
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2004
Posts: 138
Location: Darmstadt.Germany.EU

PostPosted: Sat Dec 30, 2006 5:27 pm    Post subject: Reply with quote

i knew that an answer in this style would follow... ok, i just thought if someone repeats the request it comes back in the admin's minds. it just seemed to me that the developers forgot this idea/request. yes, now you could answer "Idiot, look at what was written the post above yours: 'I've already implemented a search tittle only option in the new search engine.' ". i just wanted the devs to not forget to generally increase the search engine. :D
greetz all-inc.
_________________
# make config; not war
registered linux user # 265707
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Sat Dec 30, 2006 6:36 pm    Post subject: Reply with quote

all-inc. wrote:
i knew that an answer in this style would follow... ok, i just thought if someone repeats the request it comes back in the admin's minds. it just seemed to me that the developers forgot this idea/request. yes, now you could answer "Idiot, look at what was written the post above yours: 'I've already implemented a search tittle only option in the new search engine.' ". i just wanted the devs to not forget to generally increase the search engine. :D
greetz all-inc.

Be assured that we don't forget it. We have to deal with the crappy search ourselves every day ;-)
Btw., I didn't say nor mean "Idiot" like you quoted above.
_________________
KDE
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20048

PostPosted: Sat Dec 30, 2006 7:00 pm    Post subject: Reply with quote

all-inc. wrote:
this topic is now 0.5 years old...PLEASE add this option [...] without this option the search modus is often senseless... then the same questions will be postet again and again
Have you read any of the titles here? As often as not (it seems that way anyway) people post useless titles (e.g., "Help!!!!!1111").
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
JoeR410
n00b
n00b


Joined: 14 Sep 2005
Posts: 28
Location: Burke, VA

PostPosted: Sat Dec 30, 2006 10:25 pm    Post subject: Reply with quote

tomk wrote:
That won't work as our search.php is already heavily modified. I've already implemented a search tittle only option in the new search engine. The main problem at the moment is lack of time, I'm currently working late and at the weekends to finish a project for work. When that's done I can concentrate on the new search engine again.

all-inc. wrote:
this topic is now 0.5 years old...PLEASE add this option, it can't be that hard to implement it, but without this option the search modus is often senseless... then the same questions will be postet again and again and everyone becomes angry!!!
please, admins, concentrate your mindpower to relevant things... :wink:

Still working late and weekends a half year later? If you and the rest of the gentoo developers are that busy, why not delegate the job of modifying the search function to someone else in the Gentoo community who has the time and just check it over when they're finished?

pjp wrote:
Have you read any of the titles here? As often as not (it seems that way anyway) people post useless titles (e.g., "Help!!!!!1111").

Of course, maybe if people knew there were a "search title only" option available, they would learn to better phrase their subject titles.
Back to top
View user's profile Send private message
holotta
n00b
n00b


Joined: 13 Jan 2007
Posts: 1

PostPosted: Sat Jan 13, 2007 7:44 pm    Post subject: I agree with you noob Reply with quote

about searching only the topic title would be much more useful in most cases.
Back to top
View user's profile Send private message
eMPee584
Apprentice
Apprentice


Joined: 01 Nov 2003
Posts: 152
Location: Aachen, Germany

PostPosted: Tue Mar 27, 2007 3:44 am    Post subject: this is ridiculous-- Reply with quote

Damn a community of hundreds of devs and thousands of users who have built many thousand individualized operating systems from source can't come up with this? I know I am not being very constructive here but this bugs me since I started using Gentoo in 2005 and it is still not solved. How fucked up can it get. :oops:
_________________
"You cannot teach people anything. You can only help them discover it within themselves." --Galileo
expand your state of mind by not watching tv =)
- .... .. ... .-- --- .-. .-.. -.. .. ... .-- . .-.. .-.. .-- .. -.-. -.- . -..
Back to top
View user's profile Send private message
njuk-njuk
n00b
n00b


Joined: 24 Aug 2003
Posts: 65
Location: New York, NY

PostPosted: Sat May 05, 2007 7:24 pm    Post subject: Reply with quote

just wanted to chime in that i've been hoping for this feature for quite some time as well. i read the posts on this thread an realize that it is not a trivial matter and everyone is busy, so i'm not complaining; rather, just registering that i've been looking for this 'search title only' feature myself. granted, as was pointed out above, many post with useless titles (e.g., "Help!!!..."), but i'm concerned more with all the false positives of searches that include body text.

a common occurance is when an error (compile or runtime) appears for me in a particular package, and i want to search the forums for others with similar issues. trying to search with the package name creates so many false positives because of the common practice in postings to dump voluminous output (make.conf, long build output, emerge world listings, etc.). these postings contain the package keyword only in the body text but are in no way related to the package for which i am searching. more often than not, however, a posting with the keyword of the package in the title brings me much closer to my issue at hand.
Back to top
View user's profile Send private message
ezakimak2
n00b
n00b


Joined: 09 Feb 2009
Posts: 13

PostPosted: Wed Feb 11, 2009 4:28 pm    Post subject: body-text search can be even worse sometimes Reply with quote

for example, search for some build error message in a hot topic like kde, and the search result shows the 40+ page kde threads--and you have no idea on which page of that thread the search phrase was found--completely useless--unless you have time to manually search each page via fayt...

Also, is there any boolean logic available in the current search? It seems to always do a logical OR--always expanding the search rather than refining it with an AND.... quite the opposite of what would be the useful default more often than not.

I think the amount of time lost because of a poor search function is probably enormous. Not only that, but it incurs a larger load and more hits on the servers.
This forum is a huge resource not just to the gentoo community, but to the linux community as a whole--I'd wager users from all sorts of distros make good use of it frequently.

If these fixes have already been implemented, where are they?
If not, I'd be happy to help fix this.
Back to top
View user's profile Send private message
eMPee584
Apprentice
Apprentice


Joined: 01 Nov 2003
Posts: 152
Location: Aachen, Germany

PostPosted: Wed Feb 11, 2009 5:11 pm    Post subject: Re: body-text search can be even worse sometimes Reply with quote

ezakimak2 wrote:
If not, I'd be happy to help fix this.

Are you sure? Basically it's not that hard, just a huge amount of work.. Which is why it hasn't been done yet. What you'd have to do is check out the current live board code from CVS:
Code:
cvs -d :pserver:anonymous@anoncvs.gentoo.org:/var/cvsroot co gentoo-projects/forums
then downloading the original php2.0.22 from http://sourceforge.net/project/downloading.php?group_id=7885&filename=phpBB-2.0.22.tar.bz2 and use a tool like KDiff3 to step through the customizations that have been made and look how each piece of functionality can be either replaced by phpBB3 native features or how that can be customized.. Once you have made some progress i'm sure others will step in with testing and bugfixing. And btw the Gent0o foundation should as well have put up a bounty on this one for encouragement loooong ago..
_________________
"You cannot teach people anything. You can only help them discover it within themselves." --Galileo
expand your state of mind by not watching tv =)
- .... .. ... .-- --- .-. .-.. -.. .. ... .-- . .-.. .-.. .-- .. -.-. -.- . -..
Back to top
View user's profile Send private message
mark4
n00b
n00b


Joined: 26 Feb 2011
Posts: 46

PostPosted: Sat Feb 26, 2011 2:41 pm    Post subject: search has a missing feature Reply with quote

I can search all message topics plus their bodies for a given keyword
i can search all message bodies for a given keyword

i cannot search all message topics and ONLY the topics for the given keyword.

This means that if I am looking for information on a problem with bugzilla and search for the keyword bugzilla im going to get every single thread on every single subject that contains a reference to bugzilla. I might as well not do the search at all and just sacn through every thread in existence because either way im going to have to wade through pages and pages and pages of totally unrelated postings.

If i could search every thread in every forum for a TOPIC related to bugzilla this would simplify my current problem enormously :)
Back to top
View user's profile Send private message
mark4
n00b
n00b


Joined: 26 Feb 2011
Posts: 46

PostPosted: Sat Feb 26, 2011 2:45 pm    Post subject: Reply with quote

if a forum mod can delete this duplicate it would be appreciated. i didnt post twice, i posted once and them hit my back button :/
lol
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Sat Feb 26, 2011 5:56 pm    Post subject: Reply with quote

Deleted the duplicate and merged the previous two posts. It's unlikely that we'll make any major modifications to the search engine before we move to phpBB3.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
MMMMM
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2011
Posts: 141
Location: Berlin

PostPosted: Wed Dec 21, 2011 8:28 am    Post subject: Reply with quote

Hi,

topic search only would be great, of course.

Micha.
Back to top
View user's profile Send private message
duderonomy
Guru
Guru


Joined: 20 Mar 2004
Posts: 349
Location: SF Bay Area

PostPosted: Tue Feb 21, 2012 9:05 pm    Post subject: Reply with quote

Thank you...
I'm sure that I am not the only one who is looking forward to the upgraded search facilities in phpBB3! :)
I was looking to constrain my search to article titles, today.

Cheers!
:D
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Sun Mar 04, 2012 7:33 pm    Post subject: Reply with quote

I know it's inconvenient, but since this forum is already heavily indexed by Google (and others), you can use them. Ie for Google
Code:
site:forums.gentoo.org intitle:your phrase here

_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
simonbcn
n00b
n00b


Joined: 01 Aug 2011
Posts: 69
Location: Denmark

PostPosted: Thu Apr 16, 2015 10:34 am    Post subject: Reply with quote

avx wrote:
I know it's inconvenient, but since this forum is already heavily indexed by Google (and others), you can use them. Ie for Google
Code:
site:forums.gentoo.org intitle:your phrase here


thanks, it works.

+1 to "search only in title" :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Forums Feedback All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum