Recently ive been searching for a good autocomplete plugin and I came across the visualsearch.js plugin. It really interested me. What I was wondering is instead of providing value matches for the facets that user selects, is it possible to get the value matches for the user input inside all the facet categories. Like if the user types in “AP”, user should get matches to word “AP” inside all facets likes “access”, “country”.
To explain correctly, I want to take both facet and matched values programatically. not through a fixed set of input. Ive found a way to do one is this way
so if we select job.name inside job facet, it should select the facet name as job : job.name instead of getting the displaying it as job.name: and again going for some value matches. im trying to integrate value matches and facet matches in to a single function so both takes place on single click.
My input to visual search callback is in JSONJ format. {"Regions":[{"name":"africa"}],"Company":[{"name":"google"}],"Persons":[{"name":"marc zuckerberg"},{"name":"matt romney"}]}
is it possible to achieve it using visual search?
You can try this , i had the same situation too.
Try mixing two plugins.
one was jquery auto complete and the other is http://ioncache.github.com/Tag-Handler/ to create tags
First I integrated to “Categories” and “multi values” script in to one and added facet categorywise division in auto complete..
then added http://ioncache.github.com/Tag-Handler/ so that tags are created on entering or on selection
This is the script part
and HTML part is
Thanks
Vineeth