forums
new posts
donate
UER Store
events
location db
db map
search
members
faq
terms of service
privacy policy
register
login




UER Forum > Archived Old Forum Issues > Weird search behaviour (Viewed 342 times)
Emperor Wang 


Location: On an island, in a river


Fetish? What fetish?

Send Private Message | Send Email
Weird search behaviour
< on 12/18/2005 6:41 AM >
Posted on Forum: UER Forum
 
When I search for words (or numbers) less than 4 characters long, no results show. What's up with that, Av?

It's great to be alive!
Avatar-X 

Alpha Husky


Location: West Coast
Gender: Male


yay!

Send Private Message | Send Email | AvBrand
Re: Weird search behaviour
<Reply # 1 on 12/18/2005 7:12 AM >
Posted on Forum: UER Forum
 
The search requires 4 characters or more.

-av

huskies - such fluff.
Emperor Wang 


Location: On an island, in a river


Fetish? What fetish?

Send Private Message | Send Email
Re: Weird search behaviour
<Reply # 2 on 12/18/2005 8:05 AM >
Posted on Forum: UER Forum
 
Posted by Avatar-X
The search requires 4 characters or more.

-av


I assume the rationale is to prevent bogus searches from wasting CPU, but you're excluding some legitimate search terms. Would it be possible to warn the user before searching for short strings? Or to disallow a list of common short words?

If you don't want to change the strategy, can you at least make the results page indicate the search was not performed as requested? Showing 0 results in these cases is kinda misleading.

It's great to be alive!
stealthy 




You got a problem bro?

Send Private Message | Send Email
Re: Weird search behaviour
<Reply # 3 on 12/18/2005 1:35 PM >
Posted on Forum: UER Forum
 
Posted by MapMan


I assume the rationale is to prevent bogus searches from wasting CPU, but you're excluding some legitimate search terms. Would it be possible to warn the user before searching for short strings? Or to disallow a list of common short words?

If you don't want to change the strategy, can you at least make the results page indicate the search was not performed as requested? Showing 0 results in these cases is kinda misleading.


It's a MySQL limitation.

However, it can be fixed by modifying the config file.


[mysqld]
ft_min_word_len=x


Where x is the minimum word length. If you change this value to anything other than the default - 4 - then you have to rebuild all your fulltext indexes, like so:


mysql> REPAIR TABLE table ;


HillbillyHorus 


Location: Charlottesville Virginia
Gender: Male


Im in ur government, killin ur d00dz

Send Private Message | Send Email | AIM Message
Re: Weird search behaviour
<Reply # 4 on 12/18/2005 1:52 PM >
Posted on Forum: UER Forum
 
Posted by stealthy


It's a MySQL limitation.

However, it can be fixed by modifying the config file.


[mysqld]
ft_min_word_len=x


Where x is the minimum word length. If you change this value to anything other than the default - 4 - then you have to rebuild all your fulltext indexes, like so:


mysql> REPAIR TABLE table ;



Yeah. What he said.

You can't fall off a mountain.
Avatar-X 

Alpha Husky


Location: West Coast
Gender: Male


yay!

Send Private Message | Send Email | AvBrand
Re: Weird search behaviour
<Reply # 5 on 12/18/2005 5:06 PM >
Posted on Forum: UER Forum
 
Yeah I should do that. But a "repair" on the posts table will take hours.

-av

huskies - such fluff.
stealthy 




You got a problem bro?

Send Private Message | Send Email
Re: Weird search behaviour
<Reply # 6 on 12/18/2005 8:41 PM >
Posted on Forum: UER Forum
 
Posted by Avatar-X
Yeah I should do that. But a "repair" on the posts table will take hours.

-av


True, but didn't the conversion for PMs take hours as well? And look how good that system is now.

Sinister Crayon 


Location: Colorado
Gender: Male




Send Private Message | Send Email
Re: Weird search behaviour
<Reply # 7 on 12/19/2005 8:48 AM >
Posted on Forum: UER Forum
 
well, if you are in the search feature and you want to search for UEM or UEA or something like that all you have to do is go UEM* or UEA* amd it will give you results.

uem-Tux 

Iron Wok Jan


Location: Montreal
Gender: Male


UE Geek

Send Private Message | Send Email | Add to ICQ | Urban Exploration Montreal
Re: Weird search behaviour
<Reply # 8 on 12/28/2005 12:16 AM >
Posted on Forum: UER Forum
 
I've always maintained that if this issue isn't fixed, there should be a little note explaining the limitation on the search page. There are a lot of three-letter-acronym UE groups.

Urban Exploration Montreal

Why are you the way that you are?
Agent Skelly 

Web Sheriff


Location: Oregon Territory
Gender: Male


Prenez De L'Avance Avec Chrysler!

Send Private Message | Send Email | Yahoo! IM | AIM Message | AgentSkelly's Urban Explorations
Re: Weird search behaviour
<Reply # 9 on 12/28/2005 6:09 PM >
Posted on Forum: UER Forum
 
Posted by uem-Tux
I've always maintained that if this issue isn't fixed, there should be a little note explaining the limitation on the search page. There are a lot of three-letter-acronym UE groups.


Yeah, I could need to search for UER on UER!

Avatar-X 

Alpha Husky


Location: West Coast
Gender: Male


yay!

Send Private Message | Send Email | AvBrand
Re: Weird search behaviour
<Reply # 10 on 12/28/2005 6:52 PM >
Posted on Forum: UER Forum
 
Alright, I've rebuilt the search indexes to support 3 letters. Enjoy!

-av

huskies - such fluff.
Crossfire 


Location: Kay-Dub
Gender: Male


Don't call it a comeback, I've been here for years.

Send Private Message | Send Email | Add to ICQ | AIM Message | Crossfire - Exploring Life
Re: Weird search behaviour
<Reply # 11 on 1/2/2006 10:16 PM >
Posted on Forum: UER Forum
 
Did you do so by replacing the inline on the rotary girder? You could also add another gigaflop to the modulated jigulator, in which case you could potentially reduce the phlarnsmeter to negative twenty seven jigaloops.

Genius, if you ask me.

Disgruntled.
TurboZutek 

King Dick


Location: Scotland
Gender: Male


Giant octo-penised rapephant

Send Private Message | Send Email | Yahoo! IM | Urban Exploration in Scotland
Re: Weird search behaviour
<Reply # 12 on 1/2/2006 10:21 PM >
Posted on Forum: UER Forum
 
Av, when will you get it fixed so I can search on one letter?

I might want to search for eh... 'z' one day - surely I'm not alone in needing to search for single letter entries?

I know you can do it by adding the entry:

hamsters.dance=true


into porno.ini

Chris...

We all had ostriches. My dad had an ostrich farm! I remember one day someone came in and said the high altitude bombing of Kosovo had been a limited success, so we all went out and celebrated… by killing an ostrich and boiling it in kiwi fruit.
Emperor Wang 


Location: On an island, in a river


Fetish? What fetish?

Send Private Message | Send Email
Re: Weird search behaviour
<Reply # 13 on 1/11/2006 11:22 PM >
Posted on Forum: UER Forum
 
I found another one, Av...

Enter any (complete) URL in the search page, and the results show ~5500 posts. Any post with an URL or a linked pic in it is returned as match. Not too helpful if you want to check whether a link has been posted previously.

It's great to be alive!
Avatar-X 

Alpha Husky


Location: West Coast
Gender: Male


yay!

Send Private Message | Send Email | AvBrand
Re: Weird search behaviour
<Reply # 14 on 1/12/2006 1:20 AM >
Posted on Forum: UER Forum
 
To search for URLs or any other type of search where you are looking for an exact match rather than a general idea, select "Match Exact Phrase".

I tried it with URLs, and sure enough it found only the posts that had those URLs.

-av

huskies - such fluff.
Emperor Wang 


Location: On an island, in a river


Fetish? What fetish?

Send Private Message | Send Email
Re: Weird search behaviour
<Reply # 15 on 1/12/2006 4:15 AM >
Posted on Forum: UER Forum
 
Ah! I'll remember that. Thanks.

It's great to be alive!
UER Forum > Archived Old Forum Issues > Weird search behaviour (Viewed 342 times)



All content and images copyright © 2002-2024 UER.CA and respective creators. Graphical Design by Crossfire.
To contact webmaster, or click to email with problems or other questions about this site: UER CONTACT
View Terms of Service | View Privacy Policy | Server colocation provided by Beanfield
This page was generated for you in 171 milliseconds. Since June 23, 2002, a total of 739361013 pages have been generated.