Subversion Repositories SmartDukaan

Rev

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

Rev 27089 Rev 27091
Line 101... Line 101...
101
		}
101
		}
102
		if (StringUtils.isNotBlank(brand)) {
102
		if (StringUtils.isNotBlank(brand)) {
103
			parentFilter.add("brand_ss:" + brand);
103
			parentFilter.add("brand_ss:" + brand);
104
		}
104
		}
105
		if (queryTerm == "") {
105
		if (queryTerm == "") {
106
			params.put("sort", (sort=="" ? "" : sort + " ")+"create_s desc" );
106
			params.put("sort", (sort=="" ? "" : sort + ", ")+"create_s desc" );
107
		} else {
107
		} else {
108
			parentFilter.addAll(Arrays.asList(queryTerm.split(" ")));
108
			parentFilter.addAll(Arrays.asList(queryTerm.split(" ")));
109
		}
109
		}
110
		String parentFilterString = "\"" + String.join(" AND ", parentFilter) + "\"";
110
		String parentFilterString = "\"" + String.join(" AND ", parentFilter) + "\"";
111
		String childFilterString = String.join(" AND ", childFilter);
111
		String childFilterString = String.join(" AND ", childFilter);