Subversion Repositories SmartDukaan

Rev

Rev 1999 | Rev 2183 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1999 Rev 2157
Line 28... Line 28...
28
@Result(name="redirect", location="${location}", type="redirect")
28
@Result(name="redirect", location="${location}", type="redirect")
29
public class SearchController extends BaseController {
29
public class SearchController extends BaseController {
30
 
30
 
31
	private static final long serialVersionUID = -8392433517042806559L;
31
	private static final long serialVersionUID = -8392433517042806559L;
32
	private static Logger log = Logger.getLogger(Class.class);
32
	private static Logger log = Logger.getLogger(Class.class);
33
	private static Logger dataLog = DataLogger.getLogger();
-
 
34
 
33
 
35
	private List<String> results;
34
	private List<String> results;
36
 
35
 
37
	/**
36
	/**
38
	 * 
37
	 * 
Line 194... Line 193...
194
    		this.minPrice = 0.0;
193
    		this.minPrice = 0.0;
195
    		this.maxPrice = 0.0;
194
    		this.maxPrice = 0.0;
196
    	}
195
    	}
197
    	
196
    	
198
    	this.totalResults = search.getTotalResults();
197
    	this.totalResults = search.getTotalResults();
199
        dataLog.info(StringUtils.join(
-
 
200
                new String[] { Event.PRODUCT_SEARCH.name(),
-
 
201
                        userinfo.getEmail(), query, Long.toString(categoryId),
198
        DataLogger.logData(Event.PRODUCT_SEARCH.name(), Long.toString(userinfo.getUserId()), userinfo.getEmail(),
202
                        Long.toString(totalResults) }, ", "));
199
                query, Long.toString(categoryId), Long.toString(totalResults));
203
    	return "index";
200
    	return "index";
204
    }
201
    }
205
 
202
 
206
 
203
 
207
    public Map<String, String> getSnippets() throws Exception {
204
    public Map<String, String> getSnippets() throws Exception {