documentcloud / visualsearch

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

Display only parts of the suggested values #156

Open sic2 opened 8 years ago

sic2 commented 8 years ago

Hi,

I have the case where there is a set of suggested values. Say: ["value 1", "value 2", "value 3"] However, I also need to append some id to the values, which I want to keep hidden [[1, "value 1"], [2, "value 2"], [3, "value 3"]] The formatting of the JSON above could be different. But while I want visualsearch to display only ["value 1", "value 2", "value 3"], I want to keep the hidden ids for usage in the search function.

Is this possible? Could you suggest me some workaround?

Thanks