documentcloud / visualsearch

A Rich Search Box for Real Data
http://documentcloud.github.com/visualsearch
MIT License
1.8k stars 237 forks source link

Non-duplication of facet:value pairs #74

Closed shreyankg closed 12 years ago

shreyankg commented 12 years ago

Once a particular facet value has been selected, don't list it in the dropdown again.

samuelclay commented 12 years ago

You will want to handle this on your end, since some folks will be running queries that place an OR between phrases. You should keep a list of used keys, and then when VisualSearch's callbacks check for categories, just don't give the categories that have been used.

shreyankg commented 12 years ago

Thanks :-)