documentcloud / visualsearch

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

Facet-Only Option #96

Closed darkfrog26 closed 10 years ago

darkfrog26 commented 11 years ago

Currently there is a tight coupling between Facet and Value. I need to support the case where there are facet-only flags or perhaps it could be considered value-only. An update to visualsearch to support this would make it far more useful of a library.

mszoernyi commented 11 years ago

You could use this one for these cases: http://ivaynberg.github.io/select2/#tags

darkfrog26 commented 11 years ago

The idea was to be able to incorporate both facet/value and facet-only into one search. So for example you might have: "Country: USA ShowOnlyNew".

samuelclay commented 10 years ago

That's out of scope for this project, but I would just add a flag with a key and value. Instead of ShowOnlyNew, change it to show: new vs. show:all (default).

brycecorkins commented 10 years ago

Just had this issue too, here's a hackish solution: https://github.com/documentcloud/visualsearch/issues/133