This content has been marked as final. Show 3 replies
I am sailiing on the same boat. I had book marked a previous URL and looking for this sample? can some one help me with a sample .xq?
Type ahead + ASP.NET MVC Type Architecture.
These are my trying out so far.
My app config has this.
I do not have the syntax for the .xq
Type-ahead functionality can mean different things and be implemented in different ways. It is usually based on what behavior your user-space would benefit from.
In the commerce space, one popular use-case is to return Category matches based on what a user has started typing. Within Endeca, this boils down to doing a dimension search and having the Category dimension enabled for dimension search. If a user starts typing "cam", the type-ahead would then recommend:
You can match on multiple dimensions though, so long as they are enabled for dimension search. For example, if a user starts typing "ca", the type-ahead could return:
Furthermore, this behavior can be extended by enabling Compound Dimension Search. Compound Dimension Search is enabled via a flag on the dgidx process and on your ENEQuery. It provides the following behavior. If a user searches for "canon cam", it would suggest:
Category: Cameras + Brand: Canon
Clicking on the type-ahead would return the intersection of Category = Cameras and Brand = Canon, eliminating a click if the user is after Canon brand Cameras.
With regards to implementation, it basically boils down to an AJAX call to a service/URL that responds with dimension search results. Then populate an empty <div> with links.
Other scenarios involve returning Product/Record matches instead of Dimension matches.
Edited by: gose on Sep 11, 2012 8:31 AM