Subversion Repositories SmartDukaan

Rev

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

Rev 1921 Rev 1999
Line 1... Line 1...
1
package in.shop2020.serving.controllers;
1
package in.shop2020.serving.controllers;
2
 
2
 
3
import in.shop2020.serving.services.SolrSearchService;
3
import in.shop2020.serving.services.SolrSearchService;
-
 
4
import in.shop2020.serving.utils.DataLogger;
4
import in.shop2020.serving.utils.FileUtils;
5
import in.shop2020.serving.utils.FileUtils;
5
import in.shop2020.serving.utils.Utils;
6
import in.shop2020.serving.utils.Utils;
-
 
7
import in.shop2020.serving.utils.DataLogger.Event;
6
 
8
 
7
import java.io.File;
9
import java.io.File;
8
import java.io.UnsupportedEncodingException;
10
import java.io.UnsupportedEncodingException;
9
import java.net.URLEncoder;
11
import java.net.URLEncoder;
10
import java.util.ArrayList;
12
import java.util.ArrayList;
Line 25... Line 27...
25
 */
27
 */
26
@Result(name="redirect", location="${location}", type="redirect")
28
@Result(name="redirect", location="${location}", type="redirect")
27
public class SearchController extends BaseController {
29
public class SearchController extends BaseController {
28
 
30
 
29
	private static final long serialVersionUID = -8392433517042806559L;
31
	private static final long serialVersionUID = -8392433517042806559L;
30
	private static Logger log = Logger.getLogger(Class.class);	
32
	private static Logger log = Logger.getLogger(Class.class);
-
 
33
	private static Logger dataLog = DataLogger.getLogger();
31
 
34
 
32
	private List<String> results;
35
	private List<String> results;
33
 
36
 
34
	/**
37
	/**
35
	 * 
38
	 * 
Line 191... Line 194...
191
    		this.minPrice = 0.0;
194
    		this.minPrice = 0.0;
192
    		this.maxPrice = 0.0;
195
    		this.maxPrice = 0.0;
193
    	}
196
    	}
194
    	
197
    	
195
    	this.totalResults = search.getTotalResults();
198
    	this.totalResults = search.getTotalResults();
-
 
199
        dataLog.info(StringUtils.join(
-
 
200
                new String[] { Event.PRODUCT_SEARCH.name(),
-
 
201
                        userinfo.getEmail(), query, Long.toString(categoryId),
-
 
202
                        Long.toString(totalResults) }, ", "));
196
    	return "index";
203
    	return "index";
197
    }
204
    }
198
 
205
 
199
 
206
 
200
    public Map<String, String> getSnippets() throws Exception {
207
    public Map<String, String> getSnippets() throws Exception {