aspose file tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes is the search case sensitive? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "is the search case sensitive?" Watch "is the search case sensitive?" New topic
Author

is the search case sensitive?

fei lin
Ranch Hand

Joined: Nov 25, 2007
Posts: 39
I know that Fred will match Fred and Freddy. but will fred match Fred or Freddy?

thanks
Paul Murphy
Greenhorn

Joined: Jan 03, 2002
Posts: 6
Hi,

I see no reason why the search should be case sensitive. My logic is that if fred will match freddy, then surely fred should match Fred. I feel that a case insensitive search tool would be more user friendly


Trying is the first step towards failure!!!
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2216

Howdy.

This is a piece of my assignemnt:



In my opionion, this is clearly a design choice. What is "exactly" for you? If it includes being case sensitive, then that's it. Otherwise, then the case doesn't matter. In my opinion, in the real world, if you search for "fred", "fRed", or "Fred", you just want to see the result that has this word, not mattering the case. So, does "fred" matches "Fred"? In my opionion, yes. Just document your decision, and don't forget to put it in the user's manual too.
[ March 29, 2008: Message edited by: Roberto Perillo ]

Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
fei lin
Ranch Hand

Joined: Nov 25, 2007
Posts: 39
thanks guys, i will make it case insensitive.
Ryan Kade
Ranch Hand

Joined: Aug 16, 2005
Posts: 69
For my search, I adopted someone else's ideas and instead of including a text box where the user can type in search parameters, I created a drop-down prepopulated with all possible permutations. Then I don't need to do any validation and its guaranteed to be an "exact match".

Yes, I realize it's not scalable. I've documented that, and I'm not sure that it's otherwise significant. It certainly makes for an extremely user friendly UI.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: is the search case sensitive?
 
Similar Threads
What do you think on these two things?
B&S Uncertainty
Search exactly matches or partially matches?
User search B&S
find method criteria