documentcloud / visualsearch

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

Placeholder and unquotable #57

Closed jbpin closed 12 years ago

jbpin commented 12 years ago

Hi,

Thanks for this very useful component. I have a question, what unquotable is it for? Does there is a way to have a placeholder on the searchbox?

Thank in advance

samuelclay commented 12 years ago

A placeholder as an option would make a great pull request. Unquotable menas that the unquotable category will not have quotes around it. This example has state as an unquotable:

country: "United States" state: California

Although you probably don't want state as an unquotable, since New York belongs in quotes. If the category is not in unquotable, then it will get wrapped in quotes, even if it's a single word.