This content has been marked as final. Show 3 replies
Yes. Here's the gist of how it works:
Typeahead is commonly implemented by enabling wildcard search on one or more Dimensions. An AJAX query is sent out containing the beginning of a search term. A controller in the app layer answers that AJAX query and formulates an Endeca Dimension Search query. It sends that off to the Endeca MDEX engine. Endeca responds with relevant Dimension matches. The controller returns these to the client who made the AJAX request. They are rendered as hyperlinks that lead to a particular navigation state in the catalog.
I think the usual technique to get a 'begins with' behaviour is to pre-pend the data with an additional character e.g. ^Apple ^Apposite, make that field searchable and then prepend your search terms with ^ in code. The searchable field is only used for search and not displayed in the user interface.
I think the best way should be to create a dimension for characters like: A , B .. upto Z as range dimension and use these dimension id to search for starting characters.
Pradeep K Pathak