Subversion Repositories SmartDukaan

Rev

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

Rev 27105 Rev 27324
Line 32... Line 32...
32
		if (queryTerm != null && !queryTerm.equals("null")) {
32
		if (queryTerm != null && !queryTerm.equals("null")) {
33
			mandatoryQ.add(String.format("+(%s)", queryTerm));
33
			mandatoryQ.add(String.format("+(%s)", queryTerm));
34
		} else {
34
		} else {
35
			queryTerm = null;
35
			queryTerm = null;
36
		}
36
		}
37
		params.put("q", StringUtils.join(mandatoryQ, " "));
37
		params.put("q", StringUtils.join("*" + mandatoryQ + "*", " "));
38
		params.put("fl", "*");
38
		params.put("fl", "*");
39
		if (queryTerm == null) {
39
		if (queryTerm == null) {
40
			params.put("sort", "create_s desc");
40
			params.put("sort", "create_s desc");
41
		}
41
		}
42
		params.put("start", String.valueOf(0));
42
		params.put("start", String.valueOf(0));