Take the 2-minute tour ×
User Experience Stack Exchange is a question and answer site for user experience researchers and experts. It's 100% free, no registration required.

People need to be able to search for their saved recipes on my site.

They can give their recipes tags such as:

  • Desserts
  • Breads
  • Thanksgiving

In some cases they want to do an OR search: Show me recipes that are either Breads OR Desserts.

In some cases they want to do an AND search: Show me recipes that are Thanksgiving AND Desserts.


I have looked around and not found a simple way to do this. Something with checkboxes would be nice. However, it seems that checkboxes are typically OR. I.e. you check off all the categories that you are interested in.

It does not have to be fancy; either all AND or all OR.

My users will not understand boolean searches.

This is going to be the simple search, not the advanced one with lots of options and various drop-down boxes etc.

share|improve this question

4 Answers 4

up vote 4 down vote accepted

OR searches are probably how people understand searches by default* so have that as you default option.

Then underneath have a checkbox** that says:

[] Results must contain all words/tags/whatever

This way the user doesn't need to think about it if they just use the default. If the default isn't what they want they are presented with a single concept as an alternative.

*Maybe verify this with testing

**Or some other on/off switch.

share|improve this answer
    
This is probably the one that will work best for my users. Thanks. I will give it a try. –  user295469 Feb 10 at 6:38

A simple solution would be to give them two options below the search bar

  • Search for all tags
  • Search for any of the tags

So your design might look like this

mockup

download bmml source – Wireframes created with Balsamiq Mockups

share|improve this answer

Why not simply serve up results that are tabbed based on OR results and then one for AND? Results are probably much easier to pull than for a user to try and figure out the logic they want. For advanced users you could add these buttons or checkboxes but for most wouldn't giving them tabs All 3 (22), Desserts (500), Breads (112), Thanksgiving (55) be fastest and easiest to understand?

share|improve this answer

It might not be the most elegant solution, but I think a madlibs-type input would work here:


I want to look for breads and/or desserts


The bold text has a dropdown, and the and/or is a default selection that displays both in segregated lists like Mark Sloan said. The implication here is that you should be looking for one or the other, but both are available to you without having to re-start the search if you change your mind.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.