Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Learning Java by Building Android Games this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

is the search case sensitive?  RSS feed

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that Fred will match Fred and Freddy. but will fred match Fred or Freddy?

thanks
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 2292
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
fei lin
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks guys, i will make it case insensitive.
 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!