geekhack

geekhack Community => Off Topic => Topic started by: lowpoly on Thu, 12 June 2008, 03:05:47

Title: Minimum word length in search
Post by: lowpoly on Thu, 12 June 2008, 03:05:47
Hi iMav,

right now the minimum word length in search is 4. Can this be reduced?

Thanks.
Title: Minimum word length in search
Post by: iMav on Thu, 12 June 2008, 04:25:07
Quote from: sofa king;5369
right now the minimum word length in search is 4. Can this be reduced?

Yes, it can.  Did you have a lower number you'd like to request?  Or were you just curious?  :)
Title: Minimum word length in search
Post by: lowpoly on Thu, 12 June 2008, 05:08:08
:-)

I always bump into that limitation during search. Many model numbers are just three digits like G80, M15, etc. Some are just 2, for ex. M2.

So, 2 would be fine, I guess.

Thanks.
Title: Minimum word length in search
Post by: IBI on Thu, 12 June 2008, 06:30:43
1 might be best so "Model M" is allowed.
Title: Minimum word length in search
Post by: iMav on Thu, 12 June 2008, 08:12:43
Enjoy!

(I also made a change that should make xsphat quite pleased...I'll let him figure out what it is)
Title: Minimum word length in search
Post by: lowpoly on Thu, 12 June 2008, 09:01:45
Thank you!

(off to search...)

Edit: looks like it doesn't work, for ex. 7g gives 0 hits. Maybe a re-index is neccessary?
Title: Minimum word length in search
Post by: iMav on Thu, 12 June 2008, 09:25:23
Quote from: sofa king;5383
Edit: looks like it doesn't work, for ex. 7g gives 0 hits. Maybe a re-index is neccessary?

Doah!  Even though I changed vB's minimum search length, I needed to reconfigure mysql since I use the mysql fulltext search.  

Should be good to go now.
Title: Minimum word length in search
Post by: iMav on Thu, 12 June 2008, 09:32:24
Another comment on searching.  

If you click on "Search" on the top navigation bar, there is the option to search via Google.  This is not a site-specific search, but a full google search.  However, if you preface your search with "site:geekhack.org", you'll get results back just for this site.

The results are also wrapped in the geekhack template, so it is kinda cool.  

For instance, try using the google search and put in the following:

(http://www.uhhh.org/~lherzog/blog-images/gh-google-search.jpg)
Title: Minimum word length in search
Post by: lowpoly on Thu, 12 June 2008, 10:21:38
Works now, thank you.

And I finally found the thread I've been looking for.
Title: Minimum word length in search
Post by: xsphat on Fri, 13 June 2008, 00:14:59
Quote from: iMav;5381
(I also made a change that should make xsphat quite pleased...I'll let him figure out what it is)


k
Title: Minimum word length in search
Post by: xsphat on Fri, 13 June 2008, 00:15:31
:)
Title: Minimum word length in search
Post by: ashort on Fri, 13 June 2008, 06:09:26
Hey!