use of com.salesmanager.shop.model.entity.ValueList in project shopizer by shopizer-ecommerce.
the class SearchFacadeImpl method autocompleteRequest.
@Override
public ValueList autocompleteRequest(String word, MerchantStore store, Language language) {
AutoCompleteRequest req = new AutoCompleteRequest(store.getCode(), language.getCode());
// String formattedQuery = String.format(coreConfiguration.getProperty("AUTOCOMPLETE_QUERY"), query);
/**
* formatted toJSONString because of te specific field names required in
* the UI
*/
SearchKeywords keywords = getSearchKeywords(req, word);
ValueList returnList = new ValueList();
returnList.setValues(keywords.getKeywords());
return returnList;
}
Aggregations