Subversion Repositories SmartDukaan

Rev

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

Rev 7226 Rev 7255
Line 53... Line 53...
53
     * 
53
     * 
54
     */
54
     */
55
    private Map<String, List<List<String>>> crumbs;
55
    private Map<String, List<List<String>>> crumbs;
56
    
56
    
57
    private String  query;
57
    private String  query;
-
 
58
    private String  q;
58
    private String sortOrder = null;
59
    private String sortOrder = null;
59
    private Double minPrice = null;
60
    private Double minPrice = null;
60
    private Double maxPrice = null;
61
    private Double maxPrice = null;
61
 
62
 
62
    private long windowSize = 20;
63
    private long windowSize = 20;
Line 81... Line 82...
81
       
82
       
82
        log.info("this.request=" + this.request);
83
        log.info("this.request=" + this.request);
83
        
84
        
84
        //url = this.request.getRequestURL();
85
        //url = this.request.getRequestURL();
85
        query = this.request.getParameter("q");
86
        query = this.request.getParameter("q");
-
 
87
        q = this.query;
86
        try {
88
        try {
87
            url = "q="+ URLEncoder.encode(query, "UTF-8");
89
            url = "q="+ URLEncoder.encode(query, "UTF-8");
88
 
90
 
89
            if(query.trim().isEmpty()){
91
            if(query.trim().isEmpty()){
90
                    location = "/";
92
                    location = "/";
Line 340... Line 342...
340
            return "{}";
342
            return "{}";
341
        } else {
343
        } else {
342
            return new Gson().toJson(this.dynamicSearchMap);
344
            return new Gson().toJson(this.dynamicSearchMap);
343
        }
345
        }
344
    }
346
    }
-
 
347
 
-
 
348
 
-
 
349
	public void setQ(String q) {
-
 
350
		this.q = q;
-
 
351
	}
-
 
352
 
-
 
353
 
-
 
354
	public String getQ() {
-
 
355
		return q;
-
 
356
	}
345
}
357
}