Subversion Repositories SmartDukaan

Rev

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

Rev 8328 Rev 8358
Line 163... Line 163...
163
		this.xpath = XPathFactory.newInstance().newXPath();
163
		this.xpath = XPathFactory.newInstance().newXPath();
164
		
164
		
165
		query = query.trim().replaceAll("\\s+", " ");
165
		query = query.trim().replaceAll("\\s+", " ");
166
    	log.info("query=" + query);
166
    	log.info("query=" + query);
167
    	
167
    	
168
		String uri;
-
 
169
		try {
-
 
170
			uri = SOLR_URL + "?wt=xml&q=" + URLEncoder.encode(this.query, "UTF-8");
-
 
171
		} catch (UnsupportedEncodingException e1) {
-
 
172
			// TODO Auto-generated catch block
-
 
173
			uri = SOLR_URL + "?wt=xml&q=" + this.query;
168
		String uri = SOLR_URL + "?wt=xml&q=" + this.query;
174
			e1.printStackTrace();
-
 
175
		}
-
 
176
		
169
		
177
		uri += "&stats=on&stats.field=" + priceFacetName;
170
		uri += "&stats=on&stats.field=" + priceFacetName;
178
		
171
		
179
		if(sortOrder != null){
172
		if(sortOrder != null){
180
			//replace the price facet name, so that it can pick price for the source.
173
			//replace the price facet name, so that it can pick price for the source.