documentcloud / visualsearch

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

Use image in facet value auto-completion #28

Closed bjeanes closed 11 years ago

bjeanes commented 13 years ago

I tried putting arbitrary HTML in the value but it was escaped.

The use case is for autocompleting a list of users and having a small 16x16ish gravatar show up next to people's names

samuelclay commented 11 years ago

Unfortunately for this use case, VisualSearch.js is a text box replacement, so having an image in there doesn't translate to the idea that it is a single string query.