Search in sources :

Example 1 with ValueList

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;
}
Also used : AutoCompleteRequest(com.salesmanager.shop.store.model.search.AutoCompleteRequest) ValueList(com.salesmanager.shop.model.entity.ValueList) SearchKeywords(com.salesmanager.core.model.search.SearchKeywords)

Aggregations

SearchKeywords (com.salesmanager.core.model.search.SearchKeywords)1 ValueList (com.salesmanager.shop.model.entity.ValueList)1 AutoCompleteRequest (com.salesmanager.shop.store.model.search.AutoCompleteRequest)1