Monday, March 26, 2012

This is really weird...

I've got a search on my site that runs off index server.. it works well enough but has something very strange going on - it only returns results for certain searches if the seach words are in uppercase..

Now - rather than try to figure out what was going on, I just converted the search terms to upper case in my asp.net script.. it still didn't work.

Next option - transform all text in the search box to uppercase using css..

still doesn't work?

It's really odd - I've got a text box that can only display uppercase letters yet the search returns different results if I have caps lock on or off. And, as I say, I'm also converting the text to uppercase before I chuck it into my sql..

It's almost as if there's another bit of info being sent - namely that I have caps lock on??

Am I missing something completely obvious here?

Any ideas?

Thanks.The index search should be case insensitive, so I am doubtful that has anything to do with it.

Can you provide the pertinent code surround the actual query execution?

Terri

0 comments:

Post a Comment