The Flat Earth Society

The Flat Earth Society => Suggestions & Concerns => Topic started by: Thork on December 07, 2013, 03:36:50 PM

Title: Search is case sensitive
Post by: Thork on December 07, 2013, 03:36:50 PM
This is very annoying. If the word I'm looking for is the first word in a sentence for example, I don't get a result for it.

Can this be altered, please?
Title: Re: Search is case sensitive
Post by: Thork on December 07, 2013, 03:38:41 PM
Actually, search is behaving strangely. Experiment by searching the word zetetic. In quick search you get no results.

In normal search you get 5. Something is a bit weird.
Title: Re: Search is case sensitive
Post by: xasop on December 07, 2013, 04:14:41 PM
I've just spent 15 minutes or so reading through the 1500-line PHP function that implements SMF's search algorithm, and I both want to kill myself and am no closer to knowing how to fix this. I'll come back to it, but it could take a while to decipher what the SMF developers were thinking when they decided it would be a good idea to code while on acid.
Title: Re: Search is case sensitive
Post by: Thork on December 07, 2013, 04:22:03 PM
Do you observe the same strange behaviour (ie getting different returns for the same search at different times?)

and I both want to kill myself and am no closer to knowing how to fix this
My order of preference is that you fix the issue first.



PS - thanks for trying.
Title: Re: Search is case sensitive
Post by: xasop on December 07, 2013, 04:24:11 PM
Do you observe the same strange behaviour (ie getting different returns for the same search at different times?)

Yes, but I can at least explain that one. Quick search seems to apply to the current forum/thread, so if you quick search from S&C, you get different results from searching in FEIR.

Quick searching from the homepage seems to return everything.
Title: Re: Search is case sensitive
Post by: Thork on December 07, 2013, 04:24:54 PM
Do you observe the same strange behaviour (ie getting different returns for the same search at different times?)

Yes, but I can at least explain that one. Quick search seems to apply to the current forum/thread, so if you quick search from S&C, you get different results from searching in FEIR.

Quick searching from the homepage seems to return everything.
Ahh, this I did not know.

I will likely never use quick search again now I know this.
Title: Re: Search is case sensitive
Post by: xasop on December 07, 2013, 04:25:48 PM
Ahh, this I did not know.

Neither did I. I found it out by thinking about what I was doing.
Title: Re: Search is case sensitive
Post by: Thork on December 07, 2013, 04:27:39 PM
Ahh, this I did not know.

Neither did I. I found it out by thinking about what I was doing.
Before this descends into derision, I'm going to leave you to it.

thank you for adressing the issue. I'll check back when you let us know its done.
Title: Re: Search is case sensitive
Post by: Pete Svarrior on December 07, 2013, 04:42:33 PM
Okay, here's an idea for solving the quicksearch "problem". I'm thinking about adding a little tickbox next to the quicksearch bar that lets you switch between a local (within current board/thread) search and a global one. That way we can get the best of both worlds. I'm looking into it as we speak.
Title: Re: Search is case sensitive
Post by: Thork on December 07, 2013, 04:43:14 PM
Okay, here's an idea for solving the quicksearch "problem". I'm thinking about adding a little tickbox next to the quicksearch bar that lets you switch between a local (within current board/thread) search and a global one. That way we can get the best of both worlds. I'm looking into it as we speak.
Nice. TY.
Title: Re: Search is case sensitive
Post by: Pete Svarrior on December 07, 2013, 05:19:56 PM
This is more difficult than I thought. I'm going to have to postpone it until next week, but I'll definitely get something done.
Title: Re: Search is case sensitive
Post by: Pete Svarrior on December 08, 2013, 02:45:44 AM
I added the checkboxes (it was MUCH easier than I thought - big thanks to emily for pointing out the obvious to me). They look very clunky right now, but at least they allow both global and local search functionalities now.
Title: Re: Search is case sensitive
Post by: Pete Svarrior on December 08, 2013, 03:17:18 AM
Made it a bit less clunky. Still not perfect, but it's pretty good now.
Title: Re: Search is case sensitive
Post by: Snupes on December 08, 2013, 03:23:11 AM
(http://i.imgur.com/1Qnmgzw.png)

:[
Title: Re: Search is case sensitive
Post by: Pete Svarrior on December 08, 2013, 03:23:43 AM
God damn it. sec.
Title: Re: Search is case sensitive
Post by: Snupes on December 08, 2013, 03:27:04 AM
I eagerly await the FES header up there slowly expanding over time as you guys add more and more things that require lengthening it each time.

Also, it works now. :D
Title: Re: Search is case sensitive
Post by: Pete Svarrior on December 08, 2013, 03:27:27 AM
I'm running out of pixels up top :(
How about now?
Title: Re: Search is case sensitive
Post by: Snupes on December 08, 2013, 05:36:18 AM
Already told you in IRC, but just to tell you, it's fine now! Thank you. :]